
/* Team Colors & Variables */
:root {
    --primary-color: #02014A;
    --secondary-color: #FFFF00;
    --accent-color: #0505F7;
    --text-color: #2c2c2c;
    --background-color: #f8f9fa;
    --primary-rgb: 2, 1, 74;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar .nav-link {
    color: rgba(255,255,255, 0.85) !important;
    font-weight: 500;
    transition: all 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255,255,255, 0.15);
    border-radius: 4px;
}

.navbar-toggler {
    border-color: rgba(255,255,255, 0.3) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
}

/* Org back link */
.org-back-link {
    color: #ffffff !important;
    border-color: rgba(255,255,255, 0.4) !important;
    font-size: 0.85rem;
}

.org-back-link:hover {
    background: rgba(255,255,255, 0.15) !important;
    color: #ffffff !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.45)), linear-gradient(135deg, #FFFF00 0%, #0505F7 66%, #02014A 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-section .lead {
    font-size: 1.4rem;
    opacity: 0.9;
}

.hero-logo {
    max-height: 120px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
}

/* Tab Content Area */
.tab-content {
    min-height: 400px;
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 12px;
    
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    
}

.stat-card .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    
}

/* Standings */
.standings-table thead {
    background: var(--primary-color);
    color: #ffffff;
}

/* Calendar */
.calendar-nav-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.4rem 1rem;
    font-size: 1.1rem;
}

.calendar-nav-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
}

.calendar-month-label {
    color: var(--primary-color);
    min-width: 160px;
    text-align: center;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.calendar-header-row div {
    text-align: center;
    font-weight: 700;
    padding: 0.5rem 0;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    min-height: 75px;
    background: white;
    border: 1px solid #dee2e6;
    padding: 0.2rem;
    font-size: 0.8rem;
}

.calendar-day.empty {
    background: #f8f9fa;
}

.calendar-day.today {
    border: 2px solid var(--accent-color);
}

.day-number {
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 2px;
}

.calendar-event {
    font-size: 0.65rem;
    padding: 1px 3px;
    border-radius: 3px;
    margin-bottom: 1px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendar-event.game-home {
    background: var(--primary-color);
    color: #ffffff;
}

.calendar-event.game-away {
    background: var(--secondary-color);
    color: #212529;
    border: 1px solid rgba(0,0,0,0.18);
}

.calendar-event.event-practice {
    background: #e9ecef;
    color: #495057;
}

.calendar-event.event-other {
    background: var(--accent-color);
    color: white;
    opacity: 0.85;
}

.calendar-legend-home {
    background: var(--primary-color) !important;
}

.calendar-legend-away {
    background: var(--secondary-color) !important;
    color: #212529 !important;
    border: 1px solid rgba(0,0,0,0.18);
}

.calendar-legend-home {
    color: #ffffff !important;
}

/* Schedule Cards */
.schedule-card {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s;
}

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

.score-text {
    color: var(--primary-color);
}

/* Player / Roster Cards */
.player-card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.player-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.player-photo {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.player-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.captain-badge {
    background: var(--accent-color) !important;
    font-size: 0.65rem;
    text-transform: uppercase;
}

/* Coach Cards */
.coach-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.coach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.coach-photo {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.coach-name {
    color: var(--primary-color);
}

.coach-title-text {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.coach-credentials {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coach-credentials li {
    padding: 0.15rem 0 0.15rem 1.2rem;
    position: relative;
    color: #555;
}

.coach-credentials li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.coach-bio-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
}

.coach-bio-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
}

.coach-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
}

.coach-modal-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.coach-modal-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
}

.coach-modal-bio {
    text-align: left;
    line-height: 1.7;
    color: #444;
}

/* Gallery */
[id^="photoCarousel"] .carousel-item img {
    max-height: 380px;
    width: 100%;
    object-fit: contain;
    background: #111;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.3s;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: #111;
    width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1.5rem 0.5rem 0.5rem;
    font-size: 0.85rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
}

.lightbox-close {
    position: fixed;
    top: 12px;
    right: 16px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0,0,0,0.4);
    border: none;
    line-height: 1;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    min-width: 44px;
    min-height: 44px;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    background: rgba(255,255,255,0.15);
    border: none;
    padding: 1rem 0.75rem;
    border-radius: 4px;
    min-width: 44px;
    min-height: 44px;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

/* Video Cards */
.video-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #ffffff;
}

footer a {
    color: rgba(255,255,255, 0.8);
    transition: opacity 0.2s;
}

footer a:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* News Ticker */
.news-ticker-bar {
    background: #b02020;
    color: #ffffff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    height: 2.4rem;
    border-bottom: 2px solid rgba(0,0,0,0.2);
}

.ticker-label {
    background: rgba(0,0,0,0.25);
    padding: 0 1rem;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-move {
    display: inline-flex;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 2.5rem;
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* News Cards */
.news-card {
    border-radius: 8px;
}

.news-expires {
    font-size: 0.72rem;
    color: #888;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-logo {
        max-height: 80px;
    }

    .calendar-day {
        min-height: 45px;
        font-size: 0.65rem;
    }

    .calendar-event {
        font-size: 0.55rem;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .calendar-month-label {
        min-width: 0;
        font-size: 0.95rem;
    }

    .next-game-bar {
        font-size: 0.8rem;
    }

    .ngw-label {
        font-size: 0.65rem;
    }

    .ngw-opponent {
        font-size: 0.9rem;
    }

    .ngw-details {
        font-size: 0.78rem;
    }

    .news-ticker-bar {
        font-size: 0.78rem;
    }

    .ticker-label {
        padding: 0 0.5rem;
        font-size: 0.65rem;
    }

    .ticker-item {
        padding: 0 1.25rem;
    }
}

/* Next Game Widget */
.next-game-bar {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
    border-bottom: 3px solid var(--accent-color);
}

.ngw-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    font-size: 0.75rem;
}

.ngw-opponent {
    font-weight: 700;
    font-size: 1rem;
}

.ngw-details {
    opacity: 0.85;
}

.ngw-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.ngw-home {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.4);
}

.ngw-away {
    background: rgba(0,0,0,0.2);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
}
