/* Action buttons container styling */
.action-buttons-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.series-standings-btn {
    background: linear-gradient(135deg, var(--series-primary, #1d4ed8) 0%, var(--series-secondary, #1e3a8a) 100%);
    color: var(--series-text, #ffffff) !important;
    border: 1px solid color-mix(in srgb, var(--series-primary, #1d4ed8) 60%, #ffffff 40%);
    position: relative;
    isolation: isolate;
}

.series-standings-btn .btn-text,
.series-standings-btn .btn-icon,
.series-standings-btn small {
    color: var(--series-text, #ffffff) !important;
}

.series-standings-btn:hover,
.series-standings-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    border-color: color-mix(in srgb, var(--series-primary, #1d4ed8) 75%, #ffffff 25%);
}

.series-standings-btn.btn-series-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--series-image);
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    z-index: -1;
}

/* Modern action buttons styling */
.action-buttons-container .btn {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    text-align: left;
    text-decoration: none;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    flex: 1 1 280px;
    min-width: 250px;
    max-width: 350px;
    border: 1px solid transparent;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.action-buttons-container .btn .btn-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.action-buttons-container .btn .d-flex {
    flex: 1;
}

.action-buttons-container .btn small {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.2;
    color: color-mix(in srgb, var(--league-primary-text, #ffffff) 70%, #ffffff 30%);
}

/* Hover effect enhancement */
.action-buttons-container .btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.action-buttons-container .btn:hover .btn-text {
    text-decoration: underline;
}

/* Desktop 3x2 grid layout - reorder buttons */
@media (min-width: 768px) {
    .action-buttons-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 1100px;
    }

    .action-buttons-container .btn {
        flex: none;
        min-width: unset;
        max-width: none;
        width: 100%;
    }

    /* Top row: Results, Live Scoring, Series Standings */
    .action-buttons-container .action-btn--results { order: 1; }
    .action-buttons-container .action-btn--live-scoring { order: 2; }
    .action-buttons-container .action-btn--series { order: 3; }

    /* Bottom row: Last Week, League Awards, Bag Tags */
    .action-buttons-container .action-btn--recap { order: 4; }
    .action-buttons-container .action-btn--awards { order: 5; }
    .action-buttons-container .action-btn--bag-tags { order: 6; }
}

/* Responsive behavior for smaller screens - mobile only */
@media (max-width: 767px) {
    .action-buttons-container {
        gap: 0.5rem;
        display: flex;
        flex-wrap: wrap;
    }

    .action-buttons-container .btn {
        gap: 0.65rem;
        padding: 0.6rem 0.5rem;
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 140px;
        max-width: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
        justify-content: center;
        text-align: center;
    }

    .action-buttons-container .btn .btn-icon {
        font-size: 1.1rem;
    }

    .action-buttons-container .btn .btn-text {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .action-buttons-container .btn small {
        display: none !important; /* Hide subtitles on mobile */
    }
}

/* Extra small screens - tighter compression */
@media (max-width: 480px) {
    .action-buttons-container .btn {
        padding: 0.5rem 0.4rem;
    }

    .action-buttons-container .btn .btn-text {
        font-size: 0.75rem;
    }
}

/* Custom button colors for action buttons */

/* Branded buttons (left column: Last Week, Bag Tags, League Awards) - Light mode */
.action-buttons-container .btn-branded {
    background: linear-gradient(135deg,
        var(--league-accent-1, var(--league-primary, #16a34a)) 0%,
        var(--league-accent-2, var(--league-gradient, #15803d)) 100%);
    color: var(--league-accent-1-text, var(--league-primary-text, #ffffff)) !important;
    border: 1px solid color-mix(in srgb, var(--league-accent-1, var(--league-primary, #16a34a)) 70%, transparent);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--league-accent-1, var(--league-primary, #16a34a)) 25%, transparent);
}

.action-buttons-container .btn-branded .btn-text,
.action-buttons-container .btn-branded .btn-icon {
    color: var(--league-accent-1-text, var(--league-primary-text, #ffffff)) !important;
}

.action-buttons-container .btn-branded small {
    color: color-mix(in srgb, var(--league-accent-1-text, var(--league-primary-text, #ffffff)) 85%, transparent) !important;
}

.action-buttons-container .btn-branded:hover {
    background: linear-gradient(135deg,
        var(--league-accent-2, var(--league-gradient, #15803d)) 0%,
        var(--league-accent-1, var(--league-primary, #16a34a)) 100%);
    filter: brightness(1.1);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--league-accent-1, var(--league-primary, #16a34a)) 35%, transparent);
}

.action-buttons-container .btn-branded:hover .btn-text,
.action-buttons-container .btn-branded:hover .btn-icon {
    color: var(--league-accent-1-text, var(--league-primary-text, #ffffff)) !important;
}

/* Legacy btn-theme-accent - fallback */
.action-buttons-container .btn-theme-accent {
    background: var(--league-primary-text, #000);
    color: var(--league-primary, #f97316) !important;
    border-color: var(--league-primary-text, #000);
    --action-btn-hover-bg: var(--league-primary, #f97316);
}

.action-buttons-container .btn-theme-accent .btn-text,
.action-buttons-container .btn-theme-accent .btn-icon {
    color: var(--league-primary, #16a34a) !important;
}

.action-buttons-container .btn-theme-accent small {
    color: color-mix(in srgb, var(--league-primary, #16a34a) 80%, #ffffff 20%) !important;
}

.action-buttons-container .btn-theme-accent:hover {
    background: var(--action-btn-hover-bg, var(--league-primary, #f97316));
    color: var(--league-primary-text, #fff) !important;
    border-color: var(--action-btn-hover-bg, var(--league-primary, #f97316));
}

.action-buttons-container .btn-theme-accent:hover .btn-text,
.action-buttons-container .btn-theme-accent:hover .btn-icon {
    color: var(--league-primary-text, #fff) !important;
}

.action-buttons-container .btn-theme-accent:hover small {
    color: color-mix(in srgb, var(--league-primary-text, #fff) 80%, transparent 20%) !important;
}

/* PDGA Results button with proper contrast */
.action-buttons-container .btn-theme-contrast {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
}

.action-buttons-container .btn-theme-contrast:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white !important;
}

.action-buttons-container .btn-theme-contrast .btn-text,
.action-buttons-container .btn-theme-contrast .btn-icon,
.action-buttons-container .btn-theme-contrast small {
    color: white !important;
}

.action-buttons-container .btn-theme-primary .btn-text,
.action-buttons-container .btn-theme-primary .btn-icon,
.action-buttons-container .btn-theme-primary small {
    color: var(--league-primary-text, #ffffff) !important;
}

/* Registration status section */
.registration-status-section {
    padding: 2rem 0;
}

@media (max-width: 767px) {
    .registration-status-section {
        padding: 1rem 0;
    }

    .registration-status-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem !important;
    }
}

/* Previous recap text link – ensure readability across themes */
.recap-text-link {
    color: var(--theme-primary, var(--bs-primary)) !important;
    font-weight: 600;
    text-decoration: none;
}

.recap-text-link:hover,
.recap-text-link:focus {
    text-decoration: underline;
    color: var(--theme-primary, var(--bs-primary)) !important;
}

[data-bs-theme="dark"] .recap-text-link {
    /* Keep strong contrast on dark surfaces */
    color: var(--theme-primary, #93c5fd) !important;
}

/* Equal height cards for left and right columns */
.main-content-row .event-details-column .card,
.main-content-row .tee-times-column .card {
    height: 100%;
}

.event-stack-wrapper {
    display: flex;
    justify-content: center;
}

.event-stack {
    width: 100%;
    max-width: 1160px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 767px) {
    .event-stack {
        gap: 0.5rem;
    }
}

.event-chip-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    background: var(--theme-surface-1, #ffffff);
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    border-radius: 12px;
    padding: 0.85rem;
    box-shadow: var(--theme-shadow-sm, 0 4px 12px rgba(15, 23, 42, 0.08));
}

@media (max-width: 767px) {
    .event-chip-row {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.35rem;
        padding: 0.5rem;
        border-radius: 8px;
    }
}

[data-bs-theme="dark"] .event-chip-row {
    background: var(--theme-surface-2, #1e293b);
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.12));
}

.event-chip {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.event-chip__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--theme-text-secondary, #475569);
}

.event-chip__value {
    font-weight: 700;
    color: var(--theme-text-primary, #0f172a);
}

@media (max-width: 767px) {
    .event-chip {
        gap: 0.05rem;
    }

    .event-chip__label {
        font-size: 0.65rem;
    }

    .event-chip__value {
        font-size: 0.8rem;
    }
}

[data-bs-theme="dark"] .event-chip__value {
    color: var(--theme-text-primary, #e2e8f0);
}

.stack-card {
    background: var(--theme-surface-1, #ffffff);
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    border-radius: 14px;
    box-shadow: var(--theme-shadow-sm, 0 6px 18px rgba(15, 23, 42, 0.08));
    padding: 1.25rem;
}

@media (max-width: 767px) {
    .stack-card {
        padding: 0.75rem;
        border-radius: 10px;
    }
}

[data-bs-theme="dark"] .stack-card {
    background: var(--theme-surface-2, #1e293b);
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.12));
}

.stack-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
    .stack-card__header {
        gap: 0.5rem;
        margin-bottom: 0.35rem;
    }
}

.stack-card__eyebrow {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--theme-text-secondary, #475569);
    margin-bottom: 0.15rem;
}

.stack-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-text-primary, #0f172a);
}

@media (max-width: 767px) {
    .stack-card__title {
        font-size: 1rem;
    }

    .stack-card__eyebrow {
        font-size: 0.7rem;
    }
}

[data-bs-theme="dark"] .stack-card__title {
    color: var(--theme-text-primary, #e2e8f0);
}

.stack-card__summary {
    margin-top: 0.2rem;
    color: var(--theme-text-secondary, #475569);
}

[data-bs-theme="dark"] .stack-card__summary {
    color: var(--theme-text-secondary, #cbd5e1);
}

.stack-card__header-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 0.6rem;
    align-items: center;
}

.stack-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--theme-surface-2, #e2e8f0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--theme-shadow-xs, 0 2px 6px rgba(15, 23, 42, 0.1));
}

@media (max-width: 767px) {
    .stack-card__icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
}

.stack-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-bs-theme="dark"] .stack-card__summary {
    color: var(--theme-text-secondary, #cbd5e1);
}

.stack-card__body {
    padding-top: 0.35rem;
}

.schedule-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.schedule-chip {
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.1));
    border-radius: 12px;
    padding: 0.75rem;
    background: var(--theme-surface-1, #f8fafc);
    box-shadow: var(--theme-shadow-sm, 0 4px 12px rgba(15, 23, 42, 0.05));
}

[data-bs-theme="dark"] .schedule-chip {
    background: var(--theme-surface-2, #1f2937);
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.12));
}

.schedule-chip__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-secondary, #475569);
    margin-bottom: 0.2rem;
}

.schedule-chip__title {
    font-weight: 700;
    color: var(--theme-text-primary, #0f172a);
}

.schedule-chip__meta {
    color: var(--theme-text-secondary, #475569);
    margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .schedule-chip__title {
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .schedule-chip__meta {
    color: var(--theme-text-secondary, #cbd5e1);
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.org-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    border-radius: 12px;
    background: var(--theme-surface-1, #ffffff);
    box-shadow: var(--theme-shadow-sm, 0 4px 12px rgba(15, 23, 42, 0.05));
}

[data-bs-theme="dark"] .org-card {
    background: var(--theme-surface-2, #1f2937);
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.12));
}

.org-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--theme-surface-2, #e2e8f0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--theme-shadow-sm, 0 4px 10px rgba(15, 23, 42, 0.12));
}

@media (max-width: 767px) {
    .org-logo {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
}

.org-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-text .org-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-secondary, #475569);
}

.org-text .org-name {
    font-weight: 700;
    color: var(--theme-text-primary, #0f172a);
}

[data-bs-theme="dark"] .org-text .org-name {
    color: var(--theme-text-primary, #e2e8f0);
}

.director-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.director-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    border-radius: 10px;
    background: var(--theme-surface-1, #ffffff);
    box-shadow: var(--theme-shadow-xs, 0 2px 6px rgba(15, 23, 42, 0.06));
}

[data-bs-theme="dark"] .director-chip {
    background: var(--theme-surface-2, #1f2937);
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.12));
}

.director-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--theme-surface-2, #e2e8f0);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .director-avatar {
        width: 32px;
        height: 32px;
    }

    .director-name {
        font-size: 0.9rem;
    }

    .director-email {
        font-size: 0.8rem;
    }
}

.director-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-name {
    font-weight: 700;
    color: var(--theme-text-primary, #0f172a);
}

.director-email {
    font-size: 0.9rem;
    color: var(--theme-text-secondary, #475569);
}

[data-bs-theme="dark"] .director-name {
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .director-email {
    color: var(--theme-text-secondary, #cbd5e1);
}

.org-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.org-inline__thumb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--theme-surface-2, #e2e8f0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--theme-shadow-xs, 0 2px 6px rgba(15, 23, 42, 0.1));
}

.org-inline__thumb--small {
    border-radius: 50%;
}

.org-inline__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-inline__more {
    font-size: 0.85rem;
    color: var(--theme-text-secondary, #475569);
}

[data-bs-theme="dark"] .org-inline__more {
    color: var(--theme-text-secondary, #cbd5e1);
}

.course-fund {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.course-fund__image img {
    width: 180px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--theme-shadow-md, 0 8px 18px rgba(15, 23, 42, 0.15));
}

.course-fund__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-fund__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fund-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    background: var(--theme-surface-2, #e2e8f0);
    color: var(--theme-text-primary, #0f172a);
}

.fund-pill--balance {
    background: #11b67a;
    color: #ffffff;
}

.fund-pill--goal {
    background: #0ea5e9;
    color: #ffffff;
}

.course-fund__progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.course-fund__track {
    width: 100%;
    height: 14px;
    background: var(--theme-surface-2, #e2e8f0);
    border-radius: 999px;
    overflow: hidden;
}

.course-fund__bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #0ea5e9);
    border-radius: 999px;
}

.course-fund__progress-label {
    font-size: 0.9rem;
    color: var(--theme-text-secondary, #475569);
}

.course-fund__note {
    color: var(--theme-text-secondary, #475569);
}

[data-bs-theme="dark"] .course-fund__note,
[data-bs-theme="dark"] .course-fund__progress-label {
    color: var(--theme-text-secondary, #cbd5e1);
}

@media (max-width: 767px) {
    .course-fund {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .course-fund__image {
        justify-self: center;
    }
}

.schedule-card {
    padding: 1rem;
}

.schedule-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.schedule-card__text h5 {
    margin-bottom: 0.25rem;
}

.schedule-card__body {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.schedule-card__thumb {
    width: 140px;
    flex-shrink: 0;
}

.schedule-card__thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--theme-shadow-sm, 0 4px 10px rgba(15, 23, 42, 0.12));
}

.schedule-card__details {
    flex: 1;
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .schedule-card__body {
        flex-direction: column;
    }

    .schedule-card__thumb {
        width: 100%;
    }
}

/* Collapsible sections - compressed */
.collapsible-section {
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    border-radius: 0.625rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background-color: var(--theme-surface-1, #ffffff);
    box-shadow: var(--theme-shadow-sm, 0 2px 6px rgba(15, 23, 42, 0.05));
}

.stack-card.collapsible-section {
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    padding: 0.75rem;
    box-shadow: var(--theme-shadow-sm, 0 4px 12px rgba(15, 23, 42, 0.08));
}

@media (max-width: 767px) {
    .collapsible-section {
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.4rem;
        border-radius: 0.5rem;
    }

    .stack-card.collapsible-section {
        padding: 0.5rem 0.6rem;
    }
}

[data-bs-theme="dark"] .stack-card.collapsible-section {
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.12));
}

[data-bs-theme="dark"] .collapsible-section {
    background-color: var(--theme-surface-2, #1e293b);
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.12));
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.collapsible-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-text-primary, #0f172a);
}

@media (max-width: 767px) {
    .collapsible-header {
        gap: 0.35rem;
    }

    .collapsible-title {
        font-size: 0.875rem;
    }
}

[data-bs-theme="dark"] .collapsible-title {
    color: var(--theme-text-primary, #e2e8f0);
}

.collapsible-toggle {
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.12));
    background: var(--theme-surface-1, #ffffff);
    border-radius: 999px;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-secondary, #475569);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    padding: 0;
}

[data-bs-theme="dark"] .collapsible-toggle {
    background: var(--theme-surface-1, #0f172a);
    color: var(--theme-text-secondary, #cbd5f5);
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.18));
}

.collapsible-toggle:hover {
    border-color: var(--theme-primary, #2563eb);
    color: var(--theme-primary, #2563eb);
    background-color: color-mix(in srgb, var(--theme-primary, #2563eb) 8%, transparent);
}

.collapsible-toggle:focus-visible {
    outline: 2px solid var(--theme-primary, #2563eb);
    outline-offset: 2px;
}

.stack-card .collapsible-toggle {
    width: auto;
    height: auto;
    padding: 0.4rem 0.8rem;
    gap: 0.4rem;
}

.toggle-icon {
    width: 0.75rem;
    height: 0.75rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    display: inline-block;
}

.collapsible-section.is-collapsed .toggle-icon {
    transform: rotate(-135deg);
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.25s ease;
    margin-top: 0.75rem;
}

.collapsible-section.is-collapsed .collapsible-content {
    max-height: 0;
}

.flippy-collapsible.collapsible-section {
    border: none;
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.flippy-collapsible__header {
    align-items: flex-start;
    gap: 1rem;
}

.flippy-collapsible__image {
    width: 100%;
    max-width: 620px;
    border-radius: 0.85rem;
    box-shadow: var(--theme-shadow-md, 0 8px 18px rgba(15, 23, 42, 0.15));
    margin-bottom: 1rem;
}

.flippy-inline-hero {
    margin-bottom: 0.75rem;
}

.flippy-inline-hero img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    border-radius: 0.85rem;
    box-shadow: var(--theme-shadow-md, 0 8px 18px rgba(15, 23, 42, 0.15));
}

.flippy-collapsed-hero {
    margin-bottom: 0.75rem;
}

.flippy-collapsed-hero img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--theme-shadow-md, 0 8px 18px rgba(15, 23, 42, 0.15));
}

.flippy-preview__thumb img {
    width: 160px;
    aspect-ratio: 3 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: var(--theme-shadow-sm, 0 6px 12px rgba(15, 23, 42, 0.12));
}

.flippy-collapsible__title-group {
    flex: 1;
}

.flippy-preview-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.flippy-preview {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.75rem 0.875rem;
    background: var(--theme-surface-2, #f8fafc);
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    border-radius: 0.75rem;
    box-shadow: var(--theme-shadow-sm, 0 2px 6px rgba(15, 23, 42, 0.05));
}

[data-bs-theme="dark"] .flippy-preview {
    background: var(--theme-surface-2, #1f2937);
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.12));
}

.flippy-preview__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--theme-shadow-sm, 0 4px 10px rgba(15, 23, 42, 0.08));
}

.flippy-preview__body {
    flex: 1;
}

.flippy-preview__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.flippy-preview__actions .flippy-summary-toggle {
    margin-left: 0;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.flippy-preview__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--theme-text-secondary, #475569);
    margin-bottom: 0.15rem;
}

[data-bs-theme="dark"] .flippy-preview__label {
    color: var(--theme-text-secondary, #cbd5e1);
}

.flippy-preview__excerpt {
    color: var(--theme-text-primary, #0f172a);
    line-height: 1.5;
}

[data-bs-theme="dark"] .flippy-preview__excerpt {
    color: var(--theme-text-primary, #e2e8f0);
}

.flippy-summary-toggle {
    align-self: center;
    width: auto;
    height: auto;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    background: var(--theme-surface-1, #ffffff);
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.12));
    box-shadow: var(--theme-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.08));
    color: var(--theme-text-primary, #0f172a);
}

[data-bs-theme="dark"] .flippy-summary-toggle {
    background: var(--theme-surface-1, #0f172a);
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.18));
    color: var(--theme-text-primary, #e2e8f0);
}

.flippy-summary-toggle:hover {
    border-color: var(--theme-primary, #2563eb);
    color: var(--theme-primary, #2563eb);
    background-color: color-mix(in srgb, var(--theme-primary, #2563eb) 8%, transparent);
}

.flippy-summary-toggle .toggle-label {
    line-height: 1.25;
}

.flippy-summary-toggle .toggle-icon {
    width: 0.65rem;
    height: 0.65rem;
}

.flippy-summary-toggle .toggle-chevron {
    transition: transform 0.2s ease;
}

.collapsible-section.is-collapsed .flippy-summary-toggle .toggle-chevron {
    transform: rotate(180deg);
}

.collapsible-section:not(.is-collapsed) .flippy-preview {
    display: none;
}

.collapsible-section:not(.is-collapsed) .flippy-collapsed-hero {
    display: none;
}

.flippy-expanded__hero {
    margin-bottom: 1rem;
    text-align: center;
}

.flippy-expanded__hero img {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 3 / 2;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--theme-shadow-md, 0 10px 22px rgba(15, 23, 42, 0.18));
}

.flippy-preview__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    background: var(--theme-surface-1, #ffffff);
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--theme-text-primary, #0f172a);
    box-shadow: var(--theme-shadow-sm, 0 2px 6px rgba(15, 23, 42, 0.05));
}

[data-bs-theme="dark"] .meta-chip {
    background: var(--theme-surface-1, #0f172a);
    border-color: var(--theme-border-color, rgba(226, 232, 240, 0.18));
    color: var(--theme-text-primary, #e2e8f0);
}

.meta-chip__avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--theme-shadow-sm, 0 2px 6px rgba(15, 23, 42, 0.12));
}

.meta-chip__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right side content card styling to match left side */
.tee-times-column .card {
    background-color: var(--bs-card-bg, #fff);
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius);
    box-shadow: var(--bs-box-shadow-sm);
}

.tee-times-column .card-body {
    padding: 1.25rem;
}

/* Weather and ace pot info sections */
.side-info-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--theme-surface-2, var(--bs-gray-100));
    border-radius: 0.5rem;
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    box-shadow: var(--theme-shadow-sm, 0 4px 10px rgba(15, 23, 42, 0.05));
}

.side-info-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--theme-text-primary, #1f2937);
}

/* Weather module styles moved to /wwwroot/css/modules/league-event-weather.css */

.disc-shop-card {
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    box-shadow: var(--theme-shadow-sm, 0 4px 12px rgba(15, 23, 42, 0.08));
}

.disc-shop-card-body {
    background: var(--theme-surface-1, #ffffff);
    color: var(--theme-text-primary, #0f172a);
}

.disc-shop-logo img {
    max-width: 150px;
    border-radius: 12px;
    padding: 0.75rem;
    background: var(--theme-surface-2, #f8fafc);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.disc-shop-card .card-title {
    color: var(--theme-text-primary, #0f172a);
    font-weight: 600;
}

.disc-shop-card .card-text {
    color: var(--theme-text-secondary, #475569);
}

.disc-shop-contact {
    background: color-mix(in srgb, var(--theme-surface-2, #f8fafc) 85%, var(--theme-primary, #2563eb) 15%);
    border: 1px solid color-mix(in srgb, var(--theme-primary, #2563eb) 20%, transparent);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--theme-text-primary, #0f172a);
}

.disc-shop-contact h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text-primary, #0f172a);
}

.disc-shop-contact p {
    margin-bottom: 0.5rem;
    color: var(--theme-text-secondary, #475569);
}

.disc-shop-contact p:last-child {
    margin-bottom: 0;
}

[data-bs-theme="dark"] .disc-shop-card-body {
    background: var(--theme-surface-2, #1e293b);
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .disc-shop-logo img {
    background: color-mix(in srgb, var(--theme-surface-1, #0f172a) 65%, transparent);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.45);
}

[data-bs-theme="dark"] .disc-shop-card .card-text,
[data-bs-theme="dark"] .disc-shop-contact p {
    color: var(--theme-text-secondary, #cbd5f5);
}

[data-bs-theme="dark"] .disc-shop-contact {
    background: color-mix(in srgb, var(--theme-surface-2, #1e293b) 80%, var(--theme-primary, #3b82f6) 20%);
    border-color: color-mix(in srgb, var(--theme-primary, #3b82f6) 35%, transparent);
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .disc-shop-contact h5 {
    color: var(--theme-text-primary, #e2e8f0);
}

.ace-pot-display {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.ace-pot-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

.ace-pot-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.ace-pot-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.ace-pot-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1;
    position: relative;
}

.ace-pot-amount i {
    font-size: 1.5rem;
    vertical-align: super;
}

.ace-pot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ace-pot-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
    text-decoration: none;
}

.ace-pot-link i {
    font-size: 0.75rem;
}

.ace-pot-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    transform: rotate(-15deg);
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pulse animation for ace pot icon */
@keyframes pulse-icon {
    0%, 100% {
        transform: rotate(-15deg) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: rotate(-15deg) scale(1.1);
        opacity: 0.3;
    }
}

.ace-pot-icon {
    animation: pulse-icon 3s ease-in-out infinite;
}

/* Glow effect for ace pot display */
.ace-pot-display::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ace-pot-display:hover::after {
    opacity: 1;
}

/* Success indicator animation */
@keyframes success-bounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
    75% {
        transform: scale(0.98);
    }
}

/* Find a card module container */
.find-card-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto 1.5rem;
}

/* Event info grid */
.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.event-info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bs-gray-100);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.event-info-item:hover {
    background-color: var(--bs-gray-200);
    transform: translateX(5px);
}

.event-info-item i {
    font-size: 1.25rem;
}

/* Event modules container */
.event-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Dark mode support */
[data-bs-theme="dark"] {
    .event-info-item {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .event-info-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Dark theme action buttons */

    .action-buttons-container .btn-theme-accent {
        background: linear-gradient(135deg,
        var(--league-accent-1, #f97316) 0%,
        var(--league-accent-2, #ea580c) 100%);
        color: var(--league-accent-1-text, white) !important;
        border: 1px solid rgba(var(--league-accent-1-rgb, 249, 115, 22), 0.3);
    }

    .action-buttons-container .btn-theme-accent:hover {
        background: linear-gradient(135deg,
        var(--league-accent-2, #ea580c) 0%,
        var(--league-accent-1, #dc2626) 100%);
        border: 1px solid rgba(var(--league-accent-1-rgb, 249, 115, 22), 0.5);
        color: var(--league-accent-1-text, white) !important;
        filter: brightness(1.15);
    }

    /* Dark theme branded buttons (left column) */
    .action-buttons-container .btn-branded {
        background: linear-gradient(135deg,
            var(--league-accent-1, var(--league-primary, #16a34a)) 0%,
            var(--league-accent-2, var(--league-gradient, #15803d)) 100%);
        color: var(--league-accent-1-text, var(--league-primary-text, #ffffff)) !important;
        border: 1px solid color-mix(in srgb, var(--league-accent-1, var(--league-primary, #16a34a)) 50%, transparent);
        box-shadow: 0 4px 14px color-mix(in srgb, var(--league-accent-1, var(--league-primary, #16a34a)) 30%, transparent);
    }

    .action-buttons-container .btn-branded:hover {
        background: linear-gradient(135deg,
            var(--league-accent-2, var(--league-gradient, #15803d)) 0%,
            var(--league-accent-1, var(--league-primary, #16a34a)) 100%);
        filter: brightness(1.15);
        box-shadow: 0 6px 18px color-mix(in srgb, var(--league-accent-1, var(--league-primary, #16a34a)) 40%, transparent);
    }

    .action-buttons-container .btn-branded .btn-text,
    .action-buttons-container .btn-branded .btn-icon,
    .action-buttons-container .btn-branded small {
        color: var(--league-accent-1-text, var(--league-primary-text, #ffffff)) !important;
    }

    .action-buttons-container .btn-theme-primary {
        background: linear-gradient(135deg, var(--league-primary, #6366f1) 0%, var(--league-gradient, #4f46e5) 100%);
        color: var(--league-primary-text, white) !important;
        border: 1px solid rgba(var(--league-primary-rgb, 99, 102, 241), 0.3);
    }

    .action-buttons-container .btn-theme-primary:hover {
        background: linear-gradient(135deg, var(--league-primary, #6366f1) 0%, var(--league-gradient, #4f46e5) 100%);
        filter: brightness(1.15);
        border: 1px solid rgba(var(--league-primary-rgb, 99, 102, 241), 0.5);
        color: var(--league-primary-text, white) !important;
    }

    /* Inverted series CTA for readability on intense backgrounds */

    .action-buttons-container .btn-series-invert {
        background: var(--league-primary-text, #000);
        color: var(--league-primary, #6366f1) !important;
        border: 1px solid var(--league-primary-text, #000);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .action-buttons-container .btn-series-invert:hover,
    .action-buttons-container .btn-series-invert:focus-visible {
        background: var(--league-primary, #6366f1);
        color: var(--league-primary-text, #fff) !important;
        border-color: var(--league-primary, #6366f1);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    }

    /* Optional series image overlay */

    .action-buttons-container .btn-series-image {
        position: relative;
        isolation: isolate;
    }

    .action-buttons-container .btn-series-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: var(--series-image);
        background-size: cover;
        background-position: center;
        opacity: 0.14;
        z-index: -1;
    }

    .action-buttons-container .btn-theme-contrast {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white !important;
        border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .action-buttons-container .btn-theme-contrast:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        border: 1px solid rgba(16, 185, 129, 0.5);
        color: white !important;
    }

    /* Ensure series invert button matches hover states */

    .action-buttons-container .btn-series-invert {
        background: var(--league-primary-text, #000);
        color: var(--league-primary, #6366f1) !important;
        border: 1px solid var(--league-primary-text, #000);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    }

    .action-buttons-container .btn-series-invert:hover,
    .action-buttons-container .btn-series-invert:focus-visible {
        background: var(--league-primary, #6366f1);
        color: var(--league-primary-text, #fff) !important;
        border-color: var(--league-primary, #6366f1);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    }

    /* Ensure all text elements are white on dark theme action buttons */

    .action-buttons-container .btn-theme-accent .btn-text,
    .action-buttons-container .btn-theme-accent .btn-icon,
    .action-buttons-container .btn-theme-accent small,
    .action-buttons-container .btn-theme-primary .btn-text,
    .action-buttons-container .btn-theme-primary .btn-icon,
    .action-buttons-container .btn-theme-primary small,
    .action-buttons-container .btn-theme-contrast .btn-text,
    .action-buttons-container .btn-theme-contrast .btn-icon,
    .action-buttons-container .btn-theme-contrast small {
        color: white !important;
    }

    /* Registration status section text */

    .registration-status-section h2 {
        color: var(--bs-body-color);
    }

    /* Dark mode support for new sections */

    .side-info-section {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .side-info-section h4 {
        color: var(--text-primary, #e0e0e0);
    }

    .ace-pot-display {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
    }

    .ace-pot-display:hover {
        box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
    }

    /* Weather module dark mode styles are in /wwwroot/css/modules/league-event-weather.css */
}

/* Course Fund Section Enhancements */
.fund-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fund-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fund-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.fund-request-highlight {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.fund-request-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Course fund alert styling */
.course-fund-alert {
    border-left: 5px solid var(--bs-primary, #0d6efd);
    background-color: rgba(13, 110, 253, 0.05);
    animation: fadeInDown 0.5s ease-out;
}

.course-fund-alert .btn {
    transition: all 0.2s ease;
}

.course-fund-alert .btn:hover {
    transform: translateY(-2px);
}

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

.request-detail {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.project-progress {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Donation modal styling */
.donation-quick-amounts {
    justify-content: center;
}

.donation-amount-btn {
    min-width: 70px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.donation-amount-btn:hover {
    transform: translateY(-2px);
}

.donation-amount-btn.active {
    transform: scale(1.05);
}

/* Mobile prioritization: Show tee times first on mobile */
@media (max-width: 991.98px) {
    .main-content-row {
        display: flex;
        flex-direction: column;
    }

    .tee-times-column {
        order: 1; /* Show tee times first on mobile */
        margin-bottom: 2rem; /* Add extra spacing after tee times on mobile */
    }

    .tee-times-column .card {
        border: 2px solid var(--bs-primary, #0d6efd);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    }

    .tee-times-column .card-header {
        background: linear-gradient(135deg, var(--bs-primary, #0d6efd), var(--bs-info, #0dcaf0));
        color: white;
        border-bottom: none;
    }

    .event-details-column {
        order: 2; /* Show event details second on mobile */
    }
}

/* Desktop: Keep normal layout */
@media (min-width: 992px) {
    .main-content-row {
        display: flex;
        flex-direction: row;
    }

    .event-details-column {
        order: 1; /* Event details on left on desktop */
    }

    .tee-times-column {
        order: 2; /* Tee times on right on desktop */
    }
}

/* Bag tag detail styles */
.bag-tag-detail .bag-tag {
    max-width: 300px;
    margin: 0 auto;
}

.flippy-update .flippy-says {
    font-size: 0.9rem;
    padding: 0.5rem;
}

.flippy-update .flippy-image {
    width: 120px;
    height: 120px;
}

/* Page background styling is now handled by _LeagueLayout.cshtml */

/* Doubles Format Card Styling */
.doubles-format-card {
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.doubles-format-card:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.doubles-format-card .card-header {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.doubles-format-card .card-body {
    padding: 1.5rem;
}

.doubles-format-intro {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
}

.format-name {
    background: linear-gradient(135deg, var(--league-primary, #4a5568), var(--league-accent, #4299e1));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-left: 0.5rem;
}

.doubles-guide .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.doubles-guide .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.doubles-guide .card-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.doubles-guide .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.doubles-guide .list-unstyled li:last-child {
    border-bottom: none;
}

.doubles-resources {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.doubles-resources .btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.doubles-resources .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Strategy modals */
#doublesFormatsModal .accordion-button,
#doublesStrategiesModal .list-group-item {
    transition: all 0.2s ease;
}

#doublesFormatsModal .accordion-button:not(.collapsed),
#doublesStrategiesModal .card-header {
    font-weight: 600;
}

#doublesFormatsModal .accordion-button:hover {
    background-color: var(--theme-surface-2);
}

#doublesStrategiesModal .list-group-item:hover {
    background-color: var(--theme-surface-2);
}

/* Course image styling has been moved to site.css */

.course-name {
    font-weight: 600;
    display: block;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Enhanced Button Styling (shared between Bag Tags and Register Now) */
.bag-tags-btn, .register-now-btn, .pdga-btn {
    position: relative;
    background-image: linear-gradient(135deg, #2b6cb0, #3182ce);
    border: none;
    color: white;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-top: 1rem;
    min-width: 250px;
}

.bag-tags-btn::before, .register-now-btn::before, .pdga-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 0;
}

.bag-tags-btn:hover, .register-now-btn:hover, .pdga-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    color: white;
}

.bag-tags-btn:active, .register-now-btn:active, .pdga-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.3);
}

.bag-tags-btn-content, .register-now-content, .pdga-btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
}

.bag-tags-icon, .register-now-icon, .pdga-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.bag-tags-btn:hover .bag-tags-icon,
.register-now-btn:hover .register-now-icon,
.pdga-btn:hover .pdga-icon {
    transform: scale(1.1) rotate(10deg);
    background-color: rgba(255, 255, 255, 0.3);
}

.bag-tags-icon i, .register-now-icon i, .pdga-icon i {
    font-size: 1.5rem;
}

.bag-tags-text, .register-now-text, .pdga-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.bag-tags-primary, .register-now-primary, .pdga-primary {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.bag-tags-secondary, .register-now-secondary, .pdga-secondary {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* PDGA button specific styles */
.pdga-buttons-container {
    width: 100%;
    justify-content: center;
}

.pdga-btn {
    flex: 1;
    max-width: 250px;
    text-decoration: none;
}

.live-scoring-btn .pdga-icon {
    background-color: rgba(255, 255, 255, 0.3);
}

.results-btn .pdga-icon {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Register Now specific styles */
.register-now-btn {
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.register-now-icon i {
    animation: rocket-shake 2s infinite ease-in-out;
    transition: all 0.5s ease;
}

.register-now-btn.launching .register-now-icon i {
    animation: rocket-launch 1s forwards;
}

.register-now-btn.launching::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: calc(48px / 2);
    width: 20px;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 165, 0, 0.8), rgba(255, 69, 0, 0.4), transparent);
    clip-path: polygon(40% 0%, 60% 0%, 100% 100%, 0% 100%);
    transform: translateX(-50%);
    z-index: 0;
    animation: rocket-flame 1s forwards;
}

@keyframes rocket-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg) translateY(-2px);
    }
    75% {
        transform: rotate(5deg) translateY(-2px);
    }
}

@keyframes rocket-launch {
    0% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(5px);
    }
    30% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(3px);
    }
    50% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-200px) scale(0.5);
    }
}

@keyframes rocket-flame {
    0% {
        opacity: 0;
        height: 0;
    }
    20% {
        opacity: 1;
        height: 50px;
    }
    80% {
        opacity: 1;
        height: 150px;
    }
    100% {
        opacity: 0;
        height: 0;
    }
}

@media (max-width: 576px) {
    .bag-tags-btn, .register-now-btn {
        width: 100%;
    }
}

/* ============================================
   Flippy Event Details Expandable Button
   Mobile-only feature - hidden on desktop
   ============================================ */

/* Desktop: Hide button, always show content */
.flippy-details-wrapper .flippy-details-button {
    display: none;
}

.flippy-details-content {
    max-height: none !important;
    margin-top: 0 !important;
}

/* Mobile: Show button, enable collapse behavior */
@media (max-width: 767px) {
    .flippy-details-wrapper .flippy-details-button {
        display: flex;
    }

    /* Default to collapsed on mobile to prevent FOUC */
    .flippy-details-content {
        max-height: 0 !important;
        margin-top: 0 !important;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s ease;
    }

    /* Collapsed state - explicit rule for when JS toggles back */
    .flippy-details-content.is-collapsed {
        max-height: 0 !important;
        margin-top: 0 !important;
    }

    /* Expanded state when user clicks button */
    .flippy-details-content.is-expanded {
        max-height: 5000px !important;
        margin-top: 1rem !important;
    }
}

.flippy-details-wrapper {
    max-width: 1160px;
    margin: 0 auto;
}

.flippy-details-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg,
        var(--league-primary, #6366f1) 0%,
        var(--league-gradient, var(--league-primary, #2563eb)) 100%);
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--league-primary-rgb, 59, 130, 246), 0.3);
    transition: box-shadow 0.2s ease;
    text-align: left;
}

.flippy-details-button:hover {
    box-shadow: 0 6px 20px rgba(var(--league-primary-rgb, 59, 130, 246), 0.4);
}

.flippy-details-button:active {
    box-shadow: 0 2px 8px rgba(var(--league-primary-rgb, 59, 130, 246), 0.3);
}

.flippy-details-button:focus-visible {
    outline: 3px solid var(--league-primary-text, #ffffff);
    outline-offset: 3px;
}

/* Flippy Avatar */
.flippy-details-button__avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    padding: 4px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.flippy-details-button:hover .flippy-details-button__avatar {
    transform: scale(1.08) rotate(-5deg);
}

.flippy-details-button__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Button Content */
.flippy-details-button__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    position: relative;
    z-index: 1;
}

.flippy-details-button__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

.flippy-details-button__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--league-primary-text, #ffffff);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.flippy-details-button__hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Chevron */
.flippy-details-button__chevron {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--league-primary-text, #ffffff);
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.2s ease;
    position: relative;
    z-index: 1;
}

.flippy-details-button:hover .flippy-details-button__chevron {
    background: rgba(255, 255, 255, 0.3);
}

.flippy-details-button[aria-expanded="true"] .flippy-details-button__chevron {
    transform: rotate(180deg);
}

/* Content Container - Base styles (see mobile-only section above for collapse behavior) */

/* Mobile Adjustments */
@media (max-width: 767px) {
    .flippy-details-button {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
        border-radius: 0.875rem;
    }

    .flippy-details-button__avatar {
        width: 52px;
        height: 52px;
    }

    .flippy-details-button__label {
        font-size: 0.7rem;
    }

    .flippy-details-button__title {
        font-size: 1.15rem;
    }

    .flippy-details-button__hint {
        font-size: 0.78rem;
    }

    .flippy-details-button__chevron {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .flippy-details-button {
        padding: 0.75rem 0.875rem;
        gap: 0.6rem;
    }

    .flippy-details-button__avatar {
        width: 44px;
        height: 44px;
    }

    .flippy-details-button__title {
        font-size: 1.05rem;
    }

    .flippy-details-button__hint {
        font-size: 0.72rem;
    }

    .flippy-details-button__chevron {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Dark Mode */
/* Dark mode: Same league gradient, slightly stronger shadow */
[data-bs-theme="dark"] .flippy-details-button {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .flippy-details-button:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

/* Contact Card Button Styling */
.contact-card-btn {
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.contact-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.contact-card-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-card-btn .btn-icon {
    transition: transform 0.3s ease;
}

.contact-card-btn:hover .btn-icon {
    transform: rotate(10deg) scale(1.2);
}

/* PDGA Button Hover Fix - Prevent white background on hover */
.pdga-button.btn-theme-primary {
    background: linear-gradient(135deg, #4169e1 0%, #1e3a8a 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pdga-button.btn-theme-primary:hover,
.pdga-button.btn-theme-primary:focus,
.pdga-button.btn-theme-primary:active {
    background: linear-gradient(135deg, #5179f1 0%, #2e4a9a 100%) !important;
    color: white !important;
    border: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4) !important;
}

.pdga-button.btn-theme-contrast {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pdga-button.btn-theme-contrast:hover,
.pdga-button.btn-theme-contrast:focus,
.pdga-button.btn-theme-contrast:active {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
    color: white !important;
    border: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.4) !important;
}

/* PDGA Logo Styling - scoped to button context only */
.pdga-button .pdga-logo {
    height: 1.5em;
    width: auto;
    filter: brightness(0) invert(1) !important;
    transition: transform 0.3s ease !important;
}

.pdga-button:hover .pdga-logo {
    transform: scale(1.1) !important;
}

/* Override any conflicting button styles */
.pdga-button.btn-theme-primary *,
.pdga-button.btn-theme-contrast * {
    color: white !important;
}

/* Pilot Episode Card Styling */
.pilot-episode-card {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pilot-episode-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-lg);
}

/* Story Section in Schedule */
.story-section {
    border-top: 2px solid var(--theme-border-color);
    padding-top: 1.5rem;
}

/* Pilot Module - Collapsible */
.pilot-module {
    background: var(--theme-surface-1, var(--surface-1));
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--theme-border-color, rgba(15, 23, 42, 0.08));
    box-shadow: var(--theme-shadow-sm, 0 4px 12px rgba(15, 23, 42, 0.08));
}

.pilot-header {
    padding: 0.75rem;
    cursor: pointer;
    background: linear-gradient(135deg,
    color-mix(in srgb, var(--theme-surface-1, #ffffff) 90%, var(--theme-primary, #2563eb) 10%),
    color-mix(in srgb, var(--theme-surface-2, #f8fafc) 82%, var(--theme-primary, #2563eb) 18%));
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-border-color, rgba(15, 23, 42, 0.08)) 70%, transparent);
    color: var(--theme-text-primary, #0f172a);
}

.pilot-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pilot-header:hover::before {
    opacity: 1;
}

.pilot-header-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pilot-header-image {
    flex-shrink: 0;
    width: 140px;
    height: auto;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.pilot-header:hover .pilot-header-image {
    transform: scale(1.05);
}

.pilot-header-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.pilot-header-text {
    flex: 1;
}

.pilot-header-text h4 {
    color: var(--theme-text-primary, #0f172a);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pilot-header-text h4 i.fa-film {
    color: var(--theme-accent, #2563eb);
}

.pilot-header .expand-icon {
    transition: transform 0.3s ease;
    color: color-mix(in srgb, var(--theme-primary, #2563eb) 70%, var(--theme-text-primary, #0f172a) 30%);
}

.pilot-header[aria-expanded="true"] .expand-icon {
    transform: rotate(180deg);
}

.pilot-subtitle {
    color: var(--theme-text-secondary, #475569);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.pilot-expanded-content {
    padding: 1rem;
    border-top: 1px solid var(--theme-border-color);
    background: var(--theme-surface-1, var(--surface-1));
}

[data-bs-theme="dark"] .pilot-header {
    background: linear-gradient(135deg,
    color-mix(in srgb, var(--theme-primary, #2563eb) 70%, var(--theme-surface-3, #0f172a) 30%),
    color-mix(in srgb, var(--theme-gradient, #4338ca) 75%, var(--theme-surface-3, #0f172a) 25%));
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .pilot-header::before {
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .pilot-header-text h4,
[data-bs-theme="dark"] .pilot-subtitle {
    color: rgba(255, 255, 255, 0.92);
}

[data-bs-theme="dark"] .pilot-header .expand-icon {
    color: rgba(255, 255, 255, 0.8);
}

/* Episode Teaser Module */
.episode-teaser-module {
    background: var(--surface-1);
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 3px solid var(--theme-accent);
}

.teaser-header h4 {
    color: var(--theme-text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.teaser-header h4 i {
    color: var(--theme-accent);
}

.week-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--theme-accent);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: auto;
}

.teaser-title {
    color: var(--theme-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.teaser-narrative {
    color: var(--theme-text-secondary);
    line-height: 1.6;
}

.teaser-narrative p {
    margin-bottom: 0.5rem;
}

.read-more-link {
    color: var(--theme-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: var(--theme-primary);
    text-decoration: none;
    transform: translateX(3px);
}

.pilot-episode-card .card-title {
    color: var(--theme-text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Karla', system-ui, sans-serif;
}

.pilot-episode-card .card-title i {
    color: var(--theme-accent);
}

/* Pilot Image Styling */
.pilot-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--surface-2);
    margin-bottom: 1.5rem;
}

.pilot-episode-image-full {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pilot-episode-image-full:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.pilot-episode-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pilot-episode-card:hover .pilot-episode-image {
    transform: scale(1.05);
}

/* Pilot Content Styling */
.pilot-content {
    color: var(--theme-text-primary);
}

.pilot-episode-title {
    color: var(--theme-text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-family: 'Karla', system-ui, sans-serif;
}

.pilot-narrative-preview {
    position: relative;
    max-height: 180px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.pilot-narrative-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--theme-bg-primary));
    pointer-events: none;
}

.pilot-narrative-full {
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.pilot-narrative-full p {
    margin-bottom: 1rem;
}

.pilot-narrative-full::-webkit-scrollbar {
    width: 6px;
}

.pilot-narrative-full::-webkit-scrollbar-track {
    background: var(--surface-2);
    border-radius: 3px;
}

.pilot-narrative-full::-webkit-scrollbar-thumb {
    background: var(--theme-accent);
    border-radius: 3px;
}

.pilot-preview-text {
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.pilot-preview-text p {
    margin-bottom: 0.5rem;
}

/* Pilot Actions */
.pilot-actions .btn {
    min-width: 200px;
}

/* Dark mode specific adjustments */
[data-bs-theme="dark"] {
    .pilot-episode-card {
        background: var(--surface-1);
    }

    .pilot-image-wrapper {
        background: var(--surface-2);
    }

    .pilot-narrative-preview::after {
        background: linear-gradient(to bottom, transparent, var(--surface-1));
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .pilot-episode-image-full {
        max-height: 250px;
    }

    .pilot-header-image {
        width: 60px;
        height: 60px;
    }

    .pilot-narrative-preview {
        max-height: 120px;
    }

    .pilot-narrative-full {
        max-height: 350px;
    }

    .story-section {
        margin-top: 2rem;
    }

    .pilot-header-text h4 {
        font-size: 1rem;
    }

    .pilot-subtitle {
        font-size: 0.85rem;
    }

    .week-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .teaser-narrative {
        font-size: 0.95rem;
    }
}
