/* FAQ Page Styles - V3 Redesign */

:root {
    --color-purple-accent: #8a2be2;
    --color-purple-light: #a855f7;
    --color-purple-dark: #4c1d95;
    --color-cyan-accent: #06b6d4;
    --glass-bg: rgba(20, 25, 45, 0.4);
    --glass-border: rgba(138, 43, 226, 0.2);
    --glass-hover-border: rgba(138, 43, 226, 0.6);
    --card-radius: 16px;
}

body {
    background-color: #0b0f19;
    /* Default base */
}

/* FAQ Hero */
.faq-hero {
    position: relative;
    padding: 120px 20px 60px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.8), rgba(11, 15, 25, 1)), url('../assets/images/background-3.webp') center/cover;
    border-bottom: 1px solid var(--glass-border);
}

.faq-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, var(--color-purple-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.faq-hero-content p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

/* Layout */
.faq-section {
    padding: 60px 0 100px;
    background: #0b0f19;
    min-height: 100vh;
}

.faq-layout {
    display: grid;
    /* 3-column layout: Left Sidebar, Auto-centered Center Content, Right Empty Space (balances the sidebar) */
    grid-template-columns: 280px minmax(0, 850px) 280px;
    gap: 40px;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5vw;
    align-items: start;
}

/* Sticky Sidebar safely below navbar */
.faq-sidebar {
    grid-column: 1;
    position: sticky;
    top: 130px;
    z-index: 10;
}

/* Base Main Content width so it centers perfectly */
.faq-content {
    grid-column: 2;
    width: 100%;
}


.faq-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.faq-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.faq-nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, var(--color-purple-dark), rgba(138, 43, 226, 0.1));
    border-left: 3px solid var(--color-purple-accent);
}

.nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.faq-nav-link.active .nav-icon {
    opacity: 1;
    stroke: var(--color-purple-light);
}

/* FAQ Content Categories */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.faq-category {
    scroll-margin-top: 120px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.category-icon {
    width: 32px;
    height: 32px;
    stroke: var(--color-purple-accent);
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.category-description {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Glass Cards (Questions) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    border-color: var(--glass-hover-border);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.15);
    transform: translateY(-2px);
}

.glass-card.active {
    border-color: var(--color-purple-accent);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    gap: 20px;
}

.faq-question .question-text {
    flex: 1;
    line-height: 1.4;
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    stroke: var(--color-text-secondary);
}

.glass-card.active .faq-icon {
    transform: rotate(180deg);
    stroke: var(--color-purple-light);
}

/* Answer Area */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.glass-card.active .faq-answer {
    max-height: 2500px;
}

.answer-content {
    padding: 0 24px 24px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5px;
    padding-top: 20px;
}

/* Inner Components - Activity Cards (Pro/Rookie) */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.activity-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-card .card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rookie-card .card-header h3 {
    color: var(--color-cyan-accent);
}

.pro-card .card-header h3 {
    color: var(--color-purple-light);
}

.price-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.price-badge.rookie {
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-cyan-accent);
}

.price-badge.pro {
    background: rgba(168, 85, 247, 0.15);
    color: var(--color-purple-light);
}

.activity-card .card-body {
    padding: 20px;
}

.setup-specs ul {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.setup-specs ul li {
    position: relative;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.setup-specs ul li::before {
    content: '-';
    position: absolute;
    left: -15px;
    color: rgba(255, 255, 255, 0.3);
}

.inline-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    margin-top: -3px;
    opacity: 0.8;
}

/* Game Badges */
.game-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.badge {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #e2e8f0;
    transition: all 0.2s;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge.hot {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Location Cards */
.location-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.location-card {
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loc-icon {
    width: 24px;
    height: 24px;
    stroke: var(--color-cyan-accent);
    flex-shrink: 0;
}

.location-card h4 {
    color: #fff;
    margin-bottom: 5px;
}

.location-card p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.time-badge {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    color: #ccc;
}

.contact-box {
    margin-top: 15px;
    padding: 15px;
    background: rgba(138, 43, 226, 0.1);
    border-left: 3px solid var(--color-purple-accent);
    border-radius: 0 8px 8px 0;
    color: #e2e8f0;
}

/* Game Category Grids */
.game-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-group {
    background: rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 12px;
}

.game-group h4 {
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.game-group.hot h4 {
    color: #f87171;
}

.game-group.action h4 {
    color: #facc15;
}

.game-group.party h4 {
    color: #34d399;
}

/* Success Box */
.success-box {
    display: flex;
    gap: 15px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
}

.success-icon {
    stroke: #10b981;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.success-box h4 {
    color: #10b981;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.secondary-note {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.step-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-card.highlight {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-purple-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.step-card.highlight .step-number {
    background: var(--color-purple-accent);
}

.step-content h4 {
    color: #fff;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.95rem;
    margin: 0;
}

/* Bottom CTA Glass Card */
.faq-cta-box {
    margin-top: 40px;
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid var(--glass-border);
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20%,
    100% {
        left: 200%;
    }
}

.cta-content h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-btn:not(.outline) {
    background: var(--color-purple-accent);
    color: #fff;
}

.contact-btn:not(.outline):hover {
    background: var(--color-purple-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.contact-btn.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.contact-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Responsiveness */
@media (max-width: 992px) {
    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq-sidebar {
        position: static;
        margin-bottom: 20px;
        grid-column: 1;
    }

    .faq-content {
        grid-column: 1;
    }

    .faq-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        border-radius: 12px;
    }

    .faq-nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {

    .activity-grid,
    .location-cards {
        grid-template-columns: 1fr;
    }

    .faq-hero-content h1 {
        font-size: 2.2rem;
    }

    .faq-question {
        font-size: 1.05rem;
        padding: 18px 15px;
    }

    .answer-content {
        padding: 0 15px 15px;
    }
}

/* Voucher List Specifics */
.voucher-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.voucher-list li {
    position: relative;
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.voucher-list .list-icon {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    flex-shrink: 0;
    opacity: 1;
}

.voucher-list .error-icon {
    stroke: #ef4444; /* red-500 */
}

.voucher-list .warning-icon {
    stroke: #f59e0b; /* amber-500 */
}