/* ============================================
   SPREADING JOY — PAGE-SPECIFIC STYLES
   Skit list, accordion, activity accordion
   ============================================ */

/* ============================================
   SKIT LIST (table-like rows with pill tags)
   ============================================ */
.skit-list {
    background: var(--bg);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
}

.skit-list h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-align: center;
}

.skit-list .skit-intro {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
}

.skit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.skit-row:last-of-type {
    border-bottom: none;
}

.skit-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

a.skit-title:hover {
    color: var(--secondary-dk);
}

.skit-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tag {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.tag--theme {
    background: rgba(181, 100, 106, 0.12);
    color: var(--primary);
}

.tag--season {
    background: rgba(143, 166, 138, 0.15);
    color: var(--secondary-dk);
}

.skit-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.skit-footer p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 16px;
}

/* ============================================
   PLAY LIST (table-like rows with pill tags)
   ============================================ */
.play-list {
    background: var(--bg);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
}

.play-list h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-align: center;
}

.play-list .play-intro {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
}

.play-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.play-row:last-of-type {
    border-bottom: none;
}

.play-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

a.play-title:hover {
    color: var(--secondary-dk);
}

.play-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.play-duration {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

.play-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.play-footer p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 16px;
}

/* ============================================
   PERFORMANCE TABS (skits & plays tabbed view)
   ============================================ */
.performance-tabs {
    background: var(--bg);
    border-radius: 12px;
    margin: 40px 0;
    overflow: hidden;
}

.perf-tab-bar {
    display: flex;
    border-bottom: 2px solid var(--border);
}

.perf-tab {
    flex: 1;
    padding: 14px 24px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -2px;
}

.perf-tab:hover {
    color: var(--primary);
}

.perf-tab--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.perf-panel[hidden] {
    display: none;
}

/* Remove margin/radius from nested lists — outer container provides them */
.performance-tabs .skit-list,
.performance-tabs .play-list {
    margin: 0;
    border-radius: 0;
}

/* ============================================
   ACCORDION (questions & tips)
   ============================================ */
.accordion {
    margin: 40px 0;
}

.accordion-item {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.accordion-item:first-child {
    border-radius: 12px 12px 0 0;
}

.accordion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.accordion-item:only-child {
    border-radius: 12px;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: rgba(143, 166, 138, 0.06);
}

.accordion-header h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    flex: 1;
    margin-right: 16px;
}

.accordion-chevron {
    font-size: 0.75rem;
    color: var(--muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.accordion-open .accordion-chevron {
    transform: rotate(90deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-item.accordion-open .accordion-body {
    max-height: 400px;
}

.accordion-body-inner {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ============================================
   ACTIVITY ACCORDION (colored category headers)
   ============================================ */
.activity-accordion {
    margin: 40px 0;
}

.activity-category {
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
}

.activity-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    border-left: 4px solid transparent;
}

.activity-category-header:hover {
    background: rgba(143, 166, 138, 0.08);
}

.activity-category--faith .activity-category-header { border-left-color: var(--primary); }
.activity-category--memory .activity-category-header { border-left-color: var(--secondary); }
.activity-category--creative .activity-category-header { border-left-color: var(--accent); }
.activity-category--physical .activity-category-header { border-left-color: var(--primary); }

.activity-category-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-category-header h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    flex: 1;
    line-height: 1.4;
}

.activity-category-header .accordion-chevron {
    font-size: 0.75rem;
    color: var(--muted);
    transition: transform 0.3s ease;
}

.activity-category.accordion-open .accordion-chevron {
    transform: rotate(90deg);
}

.activity-category-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.activity-category.accordion-open .activity-category-body {
    max-height: 800px;
}

.activity-item {
    padding: 16px 24px 16px 44px;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item h5 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.activity-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ============================================
   RESOURCE DOWNLOAD
   ============================================ */
.resource-download {
    background: var(--bg);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
    text-align: center;
}

.resource-download h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.resource-download p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 16px;
}

.resource-download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .skit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .skit-tags {
        justify-content: flex-start;
    }

    .play-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .play-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .skit-list {
        padding: 24px 16px;
    }

    .play-list {
        padding: 24px 16px;
    }

    .accordion-header {
        padding: 14px 16px;
    }

    .accordion-body-inner {
        padding: 0 16px 16px;
    }

    .activity-category-header {
        padding: 14px 16px;
    }

    .activity-item {
        padding: 14px 16px 14px 32px;
    }

    .resource-download {
        padding: 24px 16px;
    }
}
