/* ==========================================================================
   Standplay Store — FAQ Page Styles
   Template: page-faq.php
   Design matches: about-page.css
   ========================================================================== */

/* ── Variables (inherit from site design system) ── */
:root {
    --faq-bg-base:     #0a0b10;
    --faq-bg-alt:      #12141c;
    --faq-bg-darker:   #0d0e14;
    --faq-accent:      #f39c12;
    --faq-accent-grad: linear-gradient(90deg, #f39c12, #f5b041);
    --faq-text-white:  #ffffff;
    --faq-text-sec:    #b0b0b0;
    --faq-text-muted:  #ffffff;
    --faq-border:      #f39c1266;
    --faq-border-acc:  rgba(243, 156, 18, 0.3);
    --faq-font-sans:   'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --faq-font-disp:   'Rajdhani', 'Outfit', var(--faq-font-sans);
    --faq-ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Page wrapper ── */
.faq-page {
    background-color: var(--faq-bg-base);
    color: var(--faq-text-sec);
    font-family: var(--faq-font-sans);
    line-height: 1.6;
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.faq-page * { box-sizing: border-box; }

/* ── Container (same breakpoints as about-page) ── */
.faq-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mt-20 {
    margin-top: 0 !important;
}

@media (min-width: 640px)  { .faq-container { max-width: 640px; } }
@media (min-width: 768px)  { .faq-container { max-width: 768px; } }
@media (min-width: 1024px) { .faq-container { max-width: 1024px; } }
@media (min-width: 1280px) { .faq-container { max-width: 1200px; } }


/* ==========================================================================
   1. Hero — mirrors about-hero exactly
   ========================================================================== */
.faq-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@media (min-width: 1024px) {
    .faq-hero { padding-top: 12rem; padding-bottom: 8rem; }
}

/* Amber glow blob */
.faq-hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background-color: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
}

/* Subtle texture overlay */
.faq-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.02;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.faq-hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
}

/* Badge — same as about-badge */
.faq-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--faq-accent);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) { .faq-badge { font-size: 0.75rem; } }

/* H1 — same as about-title */
.faq-title {
    font-family: var(--faq-font-disp);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--faq-text-white);
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin: 0 0 2rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

@media (min-width: 640px)  { .faq-title { font-size: 3rem; } }
@media (min-width: 768px)  { .faq-title { font-size: 4rem; } }
@media (min-width: 1024px) { .faq-title { font-size: 5rem; } }

/* Gradient text highlight — same as about-accent-text */
.faq-accent-text {
    background: var(--faq-accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--faq-accent);
}

.faq-description {
    font-size: 1rem;
    color: #909090;
    line-height: 1.7;
    max-width: 42rem;
    font-weight: 500;
    margin: 0 auto;
}

@media (min-width: 640px) { .faq-description { font-size: 1.125rem; } }
@media (min-width: 768px) { .faq-description { font-size: 1.25rem; } }


/* ==========================================================================
   2. Main FAQ Accordion
   ========================================================================== */
.faq-main {
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    background-color: rgba(18, 20, 28, 0.5);
    border-top: 1px solid var(--faq-border);
    border-bottom: 1px solid var(--faq-border);
}

@media (min-width: 1024px) {
    .faq-main { padding-top: 8rem; padding-bottom: 8rem; }
}

/* ── FAQ Group (section) ── */
.faq-group {
    margin-bottom: 3.5rem;
}

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

.faq-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--faq-border);
}

.faq-group-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.faq-group-label {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--faq-accent);
}

/* ── Items list ── */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Single accordion item — glass card like about-card ── */
.faq-item {
    background: rgba(22, 24, 34, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--faq-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.35s var(--faq-ease),
                box-shadow   0.35s var(--faq-ease),
                background   0.35s var(--faq-ease);
}

@supports not (backdrop-filter: blur(20px)) {
    .faq-item { background: rgba(30, 32, 45, 0.9); }
}

.faq-item:hover {
    border-color: var(--faq-border-acc);
    background: rgba(22, 24, 34, 0.6);
}

.faq-item.is-open {
    border-color: rgba(243, 156, 18, 0.45);
    box-shadow: 0 8px 32px rgba(243, 156, 18, 0.08);
}

/* ── Question button ── */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--faq-text-white);
    font-family: var(--faq-font-sans);
    font-size: 0.975rem;
    font-weight: 500;
    line-height: 1.5;
    transition: background 0.25s var(--faq-ease), color 0.25s var(--faq-ease);
}

.faq-question:hover,
.faq-item.is-open .faq-question {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Animated chevron ── */
.faq-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--faq-text-muted);
    background: rgba(255, 255, 255, 0.04);
    transition: transform     0.32s var(--faq-ease),
                color         0.25s var(--faq-ease),
                background    0.25s var(--faq-ease);
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
    color: var(--faq-accent);
    background: rgba(243, 156, 18, 0.12);
}

/* ── Accordion answer panel ── */
.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s var(--faq-ease);
}

/* Override the HTML `hidden` attribute so CSS transition still works */
.faq-answer[hidden] {
    display: block !important;
    max-height: 0;
    visibility: hidden;
}

.faq-answer.is-open {
    max-height: 600px;
    visibility: visible;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    padding-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--faq-text-muted);
    border-top: 1px solid var(--faq-border);
}


/* ==========================================================================
   3. CTA — mirrors about-cta exactly
   ========================================================================== */
.faq-cta {
    padding-top: 8rem;
    padding-bottom: 10rem;
    position: relative;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.faq-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.faq-cta-title {
    font-family: var(--faq-font-disp);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--faq-text-white);
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.05em;
    margin-top: 0;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

@media (min-width: 768px) { .faq-cta-title { font-size: 3.75rem; } }

.faq-cta-text {
    color: #909090;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 3rem;
    max-width: 42rem;
}

/* Glowing CTA button — identical to about-cta-button */
.faq-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    outline: none;
}

.faq-cta-glow {
    position: absolute;
    inset: 0;
    background-color: var(--faq-accent);
    filter: blur(20px);
    opacity: 0.3;
    border-radius: 1rem;
    transition: opacity 0.5s ease;
}

.faq-cta-button:hover .faq-cta-glow { opacity: 0.6; }

.faq-cta-text-inner {
    position: relative;
    background-color: var(--faq-accent);
    color: #000;
    font-weight: 900;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1.25rem 3rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: scale(1);
    transition: transform 0.3s ease;
    z-index: 20;
}

.faq-cta-button:hover .faq-cta-text-inner  { transform: scale(1.05); }
.faq-cta-button:active .faq-cta-text-inner { transform: scale(0.95); }
