/* FAQ Page Specific Styles */

/* FAQ Hero */
.faq-hero {
    padding: 10rem 2rem 4rem;
    background: var(--bg-surface);
    border-bottom: var(--border-comic);
    text-align: center;
}

.faq-hero .hero-title {
    font-size: 3.5rem;
    color: var(--rust);
    margin-bottom: 1rem;
}

.faq-hero .hero-subtitle {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.faq-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.faq-nav-link {
    padding: 0.75rem 1.5rem;
    background: var(--bg-base);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.faq-nav-link:hover {
    background: var(--bg-subtle);
    border-color: var(--text-secondary);
}

.faq-nav-link.daredog:hover {
    background: #FFE8D6;
    border-color: var(--rust);
    color: var(--rust);
}

.faq-nav-link.fairway:hover {
    background: #E8EDE6;
    border-color: #7D9B76;
    color: #7D9B76;
}

.faq-nav-link.caddie:hover {
    background: #FFF3E0;
    border-color: #D4A574;
    color: #D4A574;
}

/* FAQ Sections */
.faq-section {
    padding: var(--space-4xl) var(--space-xl);
}

.faq-section:nth-child(even) {
    background: var(--bg-surface);
}

.faq-section .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-2xl);
}

.section-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.section-icon.daredog-icon {
    background: linear-gradient(135deg, #FFE8D6 0%, #FFF3D6 100%);
    border: 2px solid var(--rust);
    color: var(--rust);
}

.section-icon.fairway-icon {
    background: linear-gradient(135deg, #E8EDE6 0%, #D6E8DA 100%);
    border: 2px solid #7D9B76;
    color: #7D9B76;
}

.section-icon.caddie-icon {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE8CC 100%);
    border: 2px solid #D4A574;
    color: #D4A574;
}

/* FAQ List */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 3px solid var(--border-strong);
    border-radius: 12px;
    box-shadow: var(--shadow-comic-sm);
    overflow: hidden;
}

.faq-item[open] {
    box-shadow: var(--shadow-comic);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    transition: background 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: var(--bg-subtle);
}

.faq-item[open] .faq-question {
    border-bottom: 2px solid var(--border);
}

.q-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rust);
    color: var(--text-inverse);
    font-family: var(--font-heading);
    font-size: 1rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.faq-answer {
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--text-primary);
}

.faq-answer a {
    color: var(--rust);
    text-decoration: underline;
}

/* Flow List (DareDog) */
.flow-list {
    counter-reset: flow;
    list-style: none;
    padding-left: 0;
}

.flow-list li {
    counter-increment: flow;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-base);
    border-radius: 8px;
    border-left: 4px solid var(--rust);
}

.flow-list li::before {
    content: counter(flow);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rust);
    color: var(--text-inverse);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Tag Table */
.tag-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.tag-table tr {
    border-bottom: 1px solid var(--border);
}

.tag-table td {
    padding: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-radius: 4px;
    color: var(--text-inverse);
}

.tag-bronze { background: linear-gradient(135deg, #CD7F32 0%, #8B5A2B 100%); }
.tag-silver { background: linear-gradient(135deg, #C0C0C0 0%, #8A9597 100%); color: var(--text-primary); }
.tag-gold { background: linear-gradient(135deg, #FFD700 0%, #D4A534 100%); color: var(--text-primary); }
.tag-diamond { background: linear-gradient(135deg, #B9F2FF 0%, #7BB8D4 100%); color: var(--text-primary); }

/* Earn Table */
.earn-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--bg-base);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
}

.earn-table th,
.earn-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.earn-table th {
    background: var(--bg-muted);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.earn-table tr:last-child td {
    border-bottom: none;
}

/* Section-specific styling */
.daredog-section .q-icon {
    background: var(--rust);
}

.fairway-section .q-icon {
    background: #7D9B76;
}

.caddie-section .q-icon {
    background: #D4A574;
}

/* Active nav link */
.nav-link.active {
    color: var(--rust);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-hero .hero-title {
        font-size: 2.5rem;
    }

    .faq-nav {
        gap: 0.5rem;
    }

    .faq-nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 1rem;
    }

    .flow-list li {
        flex-direction: column;
        gap: 0.5rem;
    }
}
