:root {
    --primary-color: #c92424;
    --primary-dark: #a71d1d;
    --primary-light: #e84545;
    --secondary-color: #1e3a8a;
    --secondary-dark: #162a6c;
    --accent-color: #ffd700;
    --text-light: #f8f8f8;
    --text-dark: #333;
    --bg-dark: #16161e;
    --bg-card: #222230;
    --bg-light: #f0f0f0;
    --transition-speed: 0.3s;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

.light-mode {
    --primary-color: #c92424;
    --primary-dark: #a71d1d;
    --primary-light: #e84545;
    --secondary-color: #1e3a8a;
    --secondary-dark: #162a6c;
    --text-light: #333;
    --text-dark: #f8f8f8;
    --bg-dark: #f0f0f0;
    --bg-card: #ffffff;
    --bg-light: #16161e;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-dark);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
}

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

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.light-mode .overlay {
    opacity: 0.05;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(22, 22, 30, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.light-mode header {
    background-color: rgba(240, 240, 240, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 3.5rem;
    transition: transform var(--transition-speed);
}

.logo img:hover {
    transform: scale(1.05);
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color var(--transition-speed);
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
}

.apply-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.apply-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.theme-toggle {
    margin-left: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color var(--transition-speed);
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 1rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: all var(--transition-speed);
}

/* Main Content */
main {
    min-height: calc(100vh - 180px);
    padding: 2rem 0;
}

.faq-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(34, 34, 48, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

.light-mode .faq-section {
    background-color: rgba(255, 255, 255, 0.8);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--text-light);
}

.underline {
    height: 3px;
    width: 100px;
    background-color: var(--primary-color);
    margin: 0.5rem auto;
}

.section-description {
    max-width: 800px;
    margin: 1rem auto 0;
    color: #b0b0b0;
    font-size: 1.1rem;
}

.light-mode .section-description {
    color: #555;
}

/* FAQ Search */
.faq-search {
    position: relative;
    margin-bottom: 2rem;
}

.faq-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #444;
    background-color: #1a1a24;
    color: var(--text-light);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.light-mode .faq-search input {
    border: 1px solid #ddd;
    background-color: #fff;
    color: var(--text-dark);
}

.faq-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.faq-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    background-color: var(--bg-card);
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.light-mode .category-btn {
    border: 1px solid #ddd;
    color: var(--text-dark);
}

.category-btn:hover {
    background-color: #2a2a3a;
}

.light-mode .category-btn:hover {
    background-color: #f0f0f0;
}

.category-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* FAQ Items */
.faq-container {
    margin-bottom: 3rem;
}

.faq-item {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.faq-question:hover {
    background-color: rgba(201, 36, 36, 0.1);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

.faq-question i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform var(--transition-speed);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-speed);
    border-top: 0 solid #444;
}

.light-mode .faq-answer {
    border-color: #ddd;
}

.faq-item.active .faq-answer {
    padding: 1.2rem;
    max-height: 1000px;
    border-top-width: 1px;
}

.faq-answer p {
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.light-mode .faq-answer p {
    color: #555;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

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

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

.faq-answer ul, 
.faq-answer ol {
    margin: 0.5rem 0 1rem 1.5rem;
    color: #b0b0b0;
}

.light-mode .faq-answer ul,
.light-mode .faq-answer ol {
    color: #555;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* No Results */
.faq-no-results {
    text-align: center;
    padding: 3rem 0;
}

.faq-no-results i {
    font-size: 3rem;
    color: #666;
    margin-bottom: 1rem;
}

.faq-no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.faq-no-results p {
    color: #888;
    margin-bottom: 1.5rem;
}

.reset-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.reset-btn:hover {
    background-color: var(--primary-dark);
}

/* Contact Support */
.contact-support {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-support h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-support p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.light-mode .contact-support p {
    color: #555;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    background-color: #5865F2;
    color: white;
    transition: all var(--transition-speed);
}

.discord-btn:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
}

.discord-btn i {
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background-color: rgba(13, 13, 18, 0.95);
    padding: 3rem 5% 1rem;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.light-mode footer {
    background-color: rgba(227, 227, 227, 0.95);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 3rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #b0b0b0;
}

.light-mode .footer-logo p {
    color: #555;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-contact a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.light-mode .footer-links ul li a,
.light-mode .footer-contact a {
    color: #555;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

.light-mode .footer-contact p {
    color: #555;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: #b0b0b0;
    font-size: 1.5rem;
    transition: color var(--transition-speed);
}

.light-mode .footer-social a {
    color: #555;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.light-mode .footer-bottom {
    border-top: 1px solid #ddd;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
}

.light-mode .footer-bottom p {
    color: #777;
}

/* Animations */
.animate {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media screen and (max-width: 900px) {
    nav {
        position: fixed;
        top: 5rem;
        right: -100%;
        width: 70%;
        height: calc(100vh - 5rem);
        background-color: rgba(22, 22, 30, 0.98);
        transition: right var(--transition-speed);
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        justify-content: flex-start;
    }
    
    .light-mode nav {
        background-color: rgba(240, 240, 240, 0.98);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        width: 100%;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .faq-categories {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .faq-section {
        padding: 1.5rem;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .faq-section {
        padding: 1rem;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}