/* ==========================================================================
   Renvima - Split FAQs Page Styles
   Theme: Renvima Space-Glass with signature Cyan-Indigo-Purple Gradients,
   glowing pill badges, ambient lighting, and mobile/Android responsiveness.
   ========================================================================== */

/* Main Split Container with Ambient Depth */
.split-faq-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--header-height, 70px));
    padding: 7rem 2rem 6rem;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

.split-faq-section::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 8%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.split-faq-section::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, rgba(56, 189, 248, 0.03) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

[data-theme="light"] .split-faq-section::before {
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
}

[data-theme="light"] .split-faq-section::after {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.06) 0%, rgba(2, 132, 199, 0.03) 50%, transparent 70%);
}

.split-faq-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 4.5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Left Column: Knowledge Hub, Quick-Nav & Direct Support Card
   ========================================================================== */
.split-faq-left {
    position: sticky;
    top: 6.5rem;
    align-self: start;
}

/* Renvima Glowing Pill Badge */
.renvima-pill-badge,
.faq-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.renvima-pill-badge i,
.faq-tag i {
    color: #38bdf8;
    font-size: 0.85rem;
}

[data-theme="light"] .renvima-pill-badge,
[data-theme="light"] .faq-tag {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.28);
    color: #0284c7;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .renvima-pill-badge i,
[data-theme="light"] .faq-tag i {
    color: #0284c7;
}

/* Renvima Gradient Headline */
.split-page-title,
.faq-title {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin: 0 0 1.35rem 0;
}

[data-theme="light"] .split-page-title,
[data-theme="light"] .faq-title {
    color: #0f172a;
}

.split-page-title .gradient-text,
.faq-title .gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

[data-theme="light"] .split-page-title .gradient-text,
[data-theme="light"] .faq-title .gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle Narrative */
.split-page-desc,
.faq-desc {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.68;
    margin-bottom: 2.2rem;
    max-width: 440px;
}

[data-theme="light"] .split-page-desc,
[data-theme="light"] .faq-desc {
    color: #475569;
}

/* Category Quick-Nav List */
.faq-category-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2.2rem;
}

.faq-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.2rem;
    background: rgba(10, 16, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.faq-nav-btn i {
    font-size: 0.88rem;
    color: #38bdf8;
    width: 20px;
    text-align: center;
    transition: transform 0.25s ease;
}

.faq-nav-btn:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(129, 140, 248, 0.1) 100%);
    border-color: rgba(56, 189, 248, 0.4);
    color: #ffffff;
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.14);
}

.faq-nav-btn:hover i {
    transform: scale(1.15);
}

[data-theme="light"] .faq-nav-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .faq-nav-btn i {
    color: #0284c7;
    -webkit-text-fill-color: #0284c7;
}

[data-theme="light"] .faq-nav-btn:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #38bdf8;
    color: #0284c7;
    -webkit-text-fill-color: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

/* Direct Support / Help Card (Renvima Glass Style) */
.faq-support-card {
    background: rgba(10, 16, 38, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 1.8rem 2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
}

.faq-support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
}

.faq-support-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 32px rgba(56, 189, 248, 0.12);
}

[data-theme="light"] .faq-support-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 36px rgba(148, 163, 184, 0.14);
}

[data-theme="light"] .faq-support-card::before {
    background: linear-gradient(90deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
}

[data-theme="light"] .faq-support-card:hover {
    border-color: #0284c7;
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(2, 132, 199, 0.16);
}

.card-pill-tag,
.faq-support-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: rgba(56, 189, 248, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .card-pill-tag,
[data-theme="light"] .faq-support-label {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.06);
    border-color: rgba(2, 132, 199, 0.2);
}

.faq-support-address {
    display: inline-block;
    font-family: 'Space Grotesk', 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 0.85rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    word-break: break-all;
}

.faq-support-address:hover {
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

[data-theme="light"] .faq-support-address {
    color: #0f172a;
}

[data-theme="light"] .faq-support-address:hover {
    color: #0284c7;
    text-shadow: none;
}

.faq-support-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.35rem;
}

[data-theme="light"] .faq-support-desc {
    color: #475569;
}

.faq-support-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.faq-support-actions .btn {
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ==========================================================================
   Right Column: Content Accordions
   ========================================================================== */
.split-faq-right {
    min-width: 0;
}

.faq-category-block {
    margin-bottom: 3.5rem;
    scroll-margin-top: 6.5rem;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .faq-category-header {
    border-bottom-color: #e2e8f0;
}

.faq-category-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-cat-blue {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

.faq-cat-cyan {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}

.faq-cat-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.faq-cat-emerald {
    background: rgba(0, 255, 135, 0.12);
    color: #00ff87;
}

[data-theme="light"] .faq-cat-blue {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

[data-theme="light"] .faq-cat-cyan {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

[data-theme="light"] .faq-cat-purple {
    background: rgba(147, 51, 234, 0.1);
    color: #7e22ce;
}

[data-theme="light"] .faq-cat-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.faq-category-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

[data-theme="light"] .faq-category-title {
    color: #0f172a;
}

.faq-category-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0.25rem 0 0 0;
}

[data-theme="light"] .faq-category-subtitle {
    color: #64748b;
}

/* Individual Accordion Items */
.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.faq-item {
    background: rgba(10, 16, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.faq-item:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(14, 23, 50, 0.78);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.faq-item[open] {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.08);
    background: rgba(14, 23, 52, 0.85);
}

[data-theme="light"] .faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .faq-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

[data-theme="light"] .faq-item[open] {
    border-color: #0284c7;
    box-shadow: 0 8px 24px rgba(148, 163, 184, 0.12);
}

/* Question Summary */
.faq-question {
    padding: 1.25rem 1.4rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: #38bdf8;
}

[data-theme="light"] .faq-question {
    color: #0f172a;
}

[data-theme="light"] .faq-question:hover {
    color: #0284c7;
}

/* Chevron indicator */
.faq-chevron {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

[data-theme="light"] .faq-chevron {
    background: #f1f5f9;
    color: #64748b;
}

[data-theme="light"] .faq-item[open] .faq-chevron {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
}

/* Answer Content */
.faq-answer {
    padding: 0 1.4rem 1.35rem 1.4rem;
    color: #94a3b8;
    font-size: 0.96rem;
    line-height: 1.75;
    animation: faqFadeIn 0.25s ease-out;
}

.faq-answer code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    font-family: monospace;
    font-size: 0.9em;
    color: #38bdf8;
}

.faq-answer a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 600;
}

[data-theme="light"] .faq-answer {
    color: #475569;
}

[data-theme="light"] .faq-answer code {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0284c7;
}

[data-theme="light"] .faq-answer a {
    color: #0284c7;
}

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

/* Bottom CTA Card */
.faq-bottom-cta {
    background: rgba(10, 12, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2.75rem 2rem;
    text-align: center;
    margin-top: 4rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .faq-bottom-cta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 36px rgba(148, 163, 184, 0.1);
}

.faq-bottom-cta h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
}

[data-theme="light"] .faq-bottom-cta h3 {
    color: #0f172a;
}

.faq-bottom-cta p {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 1.75rem auto;
    line-height: 1.65;
}

[data-theme="light"] .faq-bottom-cta p {
    color: #64748b;
}

.faq-bottom-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Light Theme Button Visibility & High Contrast Overrides */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-primary *,
[data-theme="light"] .btn-primary span,
[data-theme="light"] .btn-primary i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

[data-theme="light"] .btn-primary {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-primary:hover *,
[data-theme="light"] .btn-primary:hover span,
[data-theme="light"] .btn-primary:hover i {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25) !important;
}

[data-theme="light"] .btn-outline,
[data-theme="light"] .btn-outline *,
[data-theme="light"] .btn-outline span,
[data-theme="light"] .btn-outline i,
[data-theme="light"] #copyFaqEmailBtn,
[data-theme="light"] #copyFaqEmailBtn *,
[data-theme="light"] #copyFaqEmailBtn span,
[data-theme="light"] #copyFaqEmailBtn i {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 600 !important;
}

[data-theme="light"] .btn-outline,
[data-theme="light"] #copyFaqEmailBtn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .btn-outline:hover,
[data-theme="light"] .btn-outline:hover *,
[data-theme="light"] .btn-outline:hover span,
[data-theme="light"] .btn-outline:hover i,
[data-theme="light"] #copyFaqEmailBtn:hover,
[data-theme="light"] #copyFaqEmailBtn:hover *,
[data-theme="light"] #copyFaqEmailBtn:hover span,
[data-theme="light"] #copyFaqEmailBtn:hover i {
    background: #f8fafc !important;
    border-color: #64748b !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .faq-nav-btn,
[data-theme="light"] .faq-nav-btn *,
[data-theme="light"] .faq-nav-btn span {
    background: #ffffff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .faq-nav-btn i {
    color: #0284c7 !important;
    -webkit-text-fill-color: #0284c7 !important;
}

[data-theme="light"] .faq-nav-btn:hover,
[data-theme="light"] .faq-nav-btn:hover *,
[data-theme="light"] .faq-nav-btn:hover span {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-color: #38bdf8 !important;
    color: #0284c7 !important;
    -webkit-text-fill-color: #0284c7 !important;
}

/* ==========================================================================
   Android & Mobile Responsiveness
   ========================================================================== */
@media (max-width: 991px) {
    .split-faq-section {
        padding: 5.5rem 1.5rem 4rem;
    }

    .split-faq-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-faq-left {
        position: static;
        max-width: 100%;
    }

    .faq-title {
        font-size: 2.2rem;
    }

    .faq-desc {
        max-width: 100%;
    }

    .faq-category-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.6rem;
    }
}

@media (max-width: 640px) {
    .split-faq-section {
        padding: 4.8rem 1rem 3rem;
    }

    .faq-title {
        font-size: 1.85rem;
        letter-spacing: -0.025em;
    }

    .faq-desc {
        font-size: 0.98rem;
        margin-bottom: 1.6rem;
    }

    .faq-category-nav {
        grid-template-columns: 1fr;
    }

    .faq-support-card {
        padding: 1.3rem 1.25rem;
    }

    .faq-support-address {
        font-size: 1.05rem;
    }

    .faq-question {
        padding: 1.1rem 1.15rem;
        font-size: 0.96rem;
    }

    .faq-answer {
        padding: 0 1.15rem 1.15rem 1.15rem;
        font-size: 0.92rem;
    }

    .faq-bottom-cta {
        padding: 2rem 1.2rem;
        margin-top: 2.5rem;
    }

    .faq-bottom-actions .btn {
        width: 100%;
        min-height: 48px;
    }
}
