/* ============================================
   SHARED STYLES FOR GOLF SUB-PAGES
   (archives, survey, faq)
   ============================================ */

/* Sub-navigation tab bar */
.golf-subnav {
    background: rgba(6, 24, 18, 0.97);
    border-bottom: 1px solid rgba(212, 164, 65, 0.25);
    position: sticky;
    /* nav = 2rem top-padding + 60px logo + 2rem bottom-padding */
    top: calc(4rem + 60px);
    margin-top: calc(4rem + 60px);
    z-index: 90;
}

.golf-subnav .subnav-links {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.golf-subnav .subnav-links::-webkit-scrollbar {
    display: none;
}

.subnav-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.subnav-link:hover {
    color: var(--gold-bright);
    text-decoration: none;
}

.subnav-link.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

/* Page Header */
.sub-page-header {
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, var(--green-primary) 0%, var(--green-medium) 100%);
    border-bottom: 1px solid rgba(212, 164, 65, 0.15);
    text-align: center;
}

.sub-page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sub-page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Content wrapper */
.sub-page-content {
    padding: 2.5rem 0 4rem;
    min-height: 50vh;
}

/* Card container */
.content-card {
    background: linear-gradient(145deg, rgba(6, 24, 18, 0.85) 0%, rgba(12, 38, 30, 0.45) 100%);
    border: 1px solid rgba(212, 164, 65, 0.2);
    border-radius: 12px;
    padding: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

/* Ensure [hidden] attribute always wins over display rules */
[hidden] { display: none !important; }

/* Skeleton loading */
.skeleton-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.skeleton-tall {
    height: 60px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty / error states */
.empty-state,
.error-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.error-state {
    color: hsl(0, 70%, 65%);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border: 1px solid rgba(212, 164, 65, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.open {
    border-color: rgba(212, 164, 65, 0.45);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(212, 164, 65, 0.07);
}

.faq-chevron {
    color: var(--gold);
    font-size: 0.75rem;
    transition: transform 0.25s;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .content-card {
        padding: 1.25rem;
    }
}
