/* Base Styles */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #ff6584;
    --text-color: #333;
    --light-text: #fff;
    --bg-color: #0c0c1d;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease;
    
    /* Light mode variables */
    --light-bg-color: #f5f5f7;
    --light-card-bg: rgba(0, 0, 0, 0.03);
    --light-card-border: rgba(0, 0, 0, 0.1);
    --light-text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--light-text);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Cosmic Background Animation */
@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

@keyframes move-clouds-back {
    from {background-position: 0 0;}
    to {background-position: 10000px 0;}
}

.stars, .twinkling, .clouds {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

.stars {
    background: #000 url('https://i.imgur.com/YKY28eT.png') repeat top center;
    z-index: -3;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
    z-index: -2;
    animation: move-twink-back 200s linear infinite;
}

.clouds {
    background: transparent url('https://i.imgur.com/mHbScrQ.png') repeat top center;
    z-index: -1;
    opacity: 0.4;
    animation: move-clouds-back 150s linear infinite;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(12, 12, 29, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--card-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.7));
}

.logo-container h1 {
    font-size: 1.5rem;
    background: linear-gradient(to right, #6c63ff, #ff6584);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 30px;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    background-color: rgba(108, 99, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.help-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 20px;
    border-radius: 20px;
    background: rgba(108, 99, 255, 0.05);
    border: 1px solid rgba(108, 99, 255, 0.1);
    backdrop-filter: blur(5px);
}

.help-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #6c63ff, #ff6584);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.help-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.faq-container {
    margin-bottom: 60px;
}

.faq-search {
    display: flex;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 1rem;
    outline: none;
    border: 1px solid var(--card-border);
    border-right: none;
}

.faq-search button {
    padding: 15px 25px;
    border: none;
    border-radius: 0 50px 50px 0;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.faq-search button:hover {
    background: #574cff;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.category {
    padding: 8px 20px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.category:hover, .category.active {
    background: var(--primary-color);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.toggle-icon {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Contact Help Section */
.contact-help {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 101, 132, 0.05);
    border: 1px solid rgba(255, 101, 132, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.contact-help h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.contact-help p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-contact {
    display: inline-block;
    padding: 15px 30px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 101, 132, 0.3);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 101, 132, 0.4);
}

/* Footer Styles */
.footer {
    background-color: rgba(12, 12, 29, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 5% 20px;
    border-top: 1px solid var(--card-border);
}

html.light-mode .footer {
    background-color: rgba(245, 245, 247, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--light-text);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-section a:hover, .footer-section a.active {
    color: var(--primary-color);
}

html.light-mode .footer-section h3 {
    color: var(--text-color);
}

html.light-mode .footer-section a {
    color: rgba(0, 0, 0, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html.light-mode .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer p {
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

html.light-mode .footer p {
    color: rgba(0, 0, 0, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

html.light-mode .footer-bottom a {
    color: rgba(0, 0, 0, 0.8);
}

.dmca-badge {
    display: inline-block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .help-hero h1 {
        font-size: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .faq-categories {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .help-hero {
        padding: 40px 10px;
    }
    
    .help-hero h1 {
        font-size: 1.8rem;
    }
    
    .contact-help h2 {
        font-size: 1.6rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Light Mode Theme */
html.light-mode {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.1);
    --light-text: #333;
}

html.light-mode body {
    color: var(--text-color);
    background-color: var(--bg-color);
}

html.light-mode .stars, 
html.light-mode .twinkling, 
html.light-mode .clouds {
    opacity: 0.05; /* Reduce the opacity significantly */
}

html.light-mode .help-hero {
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

html.light-mode .help-hero p {
    color: rgba(0, 0, 0, 0.7);
}

html.light-mode header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

html.light-mode .faq-search input {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

html.light-mode .category {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

html.light-mode .faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

html.light-mode .faq-answer p {
    color: rgba(0, 0, 0, 0.8);
}

html.light-mode .contact-help {
    background: rgba(255, 101, 132, 0.08);
    border: 1px solid rgba(255, 101, 132, 0.2);
}

html.light-mode .contact-help p {
    color: rgba(0, 0, 0, 0.7);
}

html.light-mode .contact-help h2 {
    color: var(--text-color);
}

/* Theme Toggle Button */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-text);
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 99, 255, 0.2);
    transition: var(--transition);
}

#theme-toggle:hover {
    transform: rotate(15deg);
    background-color: rgba(108, 99, 255, 0.3);
}

html.light-mode #theme-toggle {
    color: var(--text-color);
}

#light-icon {
    display: none;
}

html.light-mode #dark-icon {
    display: none;
}

html.light-mode #light-icon {
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--card-border);
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

html.light-mode .modal-content {
    background-color: var(--light-bg-color);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--light-text);
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

html.light-mode .close-modal {
    color: var(--text-color);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--light-text);
    font-size: 1.8rem;
}

html.light-mode .modal-content h2 {
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-text);
    font-weight: 500;
}

html.light-mode .form-group label {
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 1rem;
    font-family: inherit;
    resize: none;
}

html.light-mode .form-group input,
html.light-mode .form-group textarea {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #574cff;
    transform: translateY(-2px);
}
