/* 
 * Junior Current Website
 * Main Stylesheet
 */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Color Variables */
:root {
    --navy-blue: #0c223f;      /* Background and outlines */
    --light-teal: #6dd2dc;     /* Side panels and stars */
    --red: #d61f26;            /* Central stripe */
    --white: #ffffff;          /* Text and stars */
    --dark-teal: #0e3c4e;      /* Accents within the teal side */
    --very-dark-navy: #0a1a2e; /* Shadows/outlines */
    --gray: #f4f4f4;           /* Light background */
    --dark-gray: #333333;      /* Text color */
}

/* Typography */
body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin: 2rem 0;
}

h2 {
    font-size: 1.8rem;
    margin: 1.5rem 0;
}

h3 {
    font-size: 1.5rem;
    margin: 1.2rem 0;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--light-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-teal);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.main-nav {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-teal);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12, 34, 63, 0.7), rgba(12, 34, 63, 0.3));
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    color: var(--white);
    text-align: center;
    padding: 1rem;
    z-index: 2;
}

.tagline {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero Stats Section - Compact Professional Design */
.hero-stats {
    background: var(--navy-blue);
    color: var(--white);
    padding: 2rem 0;
    margin-top: -2px;
    border-bottom: 3px solid var(--light-teal);
}

.season-header {
    text-align: center;
    margin-bottom: 2rem;
}

.season-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.season-subtitle {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--light-teal);
    opacity: 0.9;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-card {
    background: var(--white);
    border: 2px solid var(--light-teal);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    min-width: 120px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(12, 34, 63, 0.1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 34, 63, 0.2);
    border-color: var(--dark-teal);
}

.stat-card.wins {
    border-color: var(--light-teal);
}

.stat-card.losses {
    border-color: var(--red);
}

.stat-card.remaining {
    border-color: var(--dark-teal);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: var(--navy-blue);
}

.stat-card.wins .stat-number {
    color: var(--dark-teal);
}

.stat-card.losses .stat-number {
    color: var(--red);
}

.stat-card.remaining .stat-number {
    color: var(--navy-blue);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark-gray);
}

/* Main Content Layout - Compact Professional */
.main-content {
    padding: 3rem 0;
    background: var(--gray);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.content-primary, .content-secondary {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    border-bottom: 2px solid var(--light-teal);
    padding-bottom: 0.5rem;
}

.section-header h2 i {
    font-size: 1.25rem;
    color: var(--light-teal);
}

/* Card Styling - Clean and Professional */
.next-game-spotlight, 
.recent-games-section, 
.team-story {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(12, 34, 63, 0.08);
    border: 1px solid rgba(109, 210, 220, 0.2);
    transition: all 0.2s ease;
}

.next-game-spotlight:hover,
.recent-games-section:hover,
.team-story:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 34, 63, 0.12);
    border-color: var(--light-teal);
}

/* Team Story Styling */
.story-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.story-content p:last-of-type {
    margin-bottom: 1.5rem;
}

.team-motto {
    background: var(--navy-blue);
    color: var(--white);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-style: italic;
    font-size: 1rem;
    font-weight: 500;
    border-left: 4px solid var(--light-teal);
}

.team-motto i {
    opacity: 0.8;
    margin: 0 0.25rem;
    color: var(--light-teal);
}


/* CTA Button */
.cta-container {
    text-align: center;
    margin: 2rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #b51a20;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
.site-footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

.social-icons {
    margin: 1rem 0;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background-color: var(--light-teal);
    color: var(--navy-blue);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--navy-blue);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Player Cards */
.player-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.player-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.player-image {
    height: 250px;
    overflow: hidden;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.player-info {
    padding: 1.5rem;
}

.player-name {
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.player-position {
    color: var(--dark-teal);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Award Cards */
.award-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.award-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--light-teal);
    transition: transform 0.3s ease;
}

.award-card:hover {
    transform: translateY(-5px);
}

.award-title {
    color: var(--navy-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.award-recipient {
    color: var(--red);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Schedule */
.schedule-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: var(--white);
    border: 2px solid var(--navy-blue);
    color: var(--navy-blue);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--navy-blue);
    color: var(--white);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    background-color: var(--navy-blue);
    color: var(--white);
    font-weight: 600;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.game-result {
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
}

.result-win {
    background-color: #d4edda;
    color: #155724;
}

.result-loss {
    background-color: #f8d7da;
    color: #721c24;
}

.result-tie {
    background-color: #fff3cd;
    color: #856404;
}

.result-exhibition {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Coach Cards */
.coach-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.coach-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.coach-card:hover {
    transform: translateY(-5px);
}

/* About Page */
.about-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.core-values {
    background-color: var(--light-teal);
    color: var(--navy-blue);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.core-values h2 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.core-values ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

.core-values li {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Login Form */
.login-container {
    max-width: 500px;
    margin: 2rem auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy-blue);
}

.login-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.login-form button {
    width: 100%;
    margin-top: 1rem;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Menu open state */
body.menu-open {
    overflow: hidden;
}

/* Roster Page Specific Styles */
.roster-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.roster-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.roster-filters .filter-btn {
    background-color: var(--white);
    border: 2px solid var(--light-teal);
    color: var(--navy-blue);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.roster-filters .filter-btn:hover,
.roster-filters .filter-btn.active {
    background-color: var(--light-teal);
    color: var(--navy-blue);
}

/* Match Report Modal Styles */
.match-report-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--white);
    font-size: 1.5rem;
}

.close-button {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--white);
    transition: color 0.3s ease;
    line-height: 1;
}

.close-button:hover {
    color: var(--light-teal);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.match-score {
    background-color: var(--light-teal);
    color: var(--navy-blue);
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.match-report-content {
    line-height: 1.8;
    color: var(--dark-gray);
    font-size: 1rem;
    white-space: pre-wrap;
}

.match-report-link {
    color: var(--navy-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.match-report-link:hover {
    color: var(--light-teal);
    text-decoration: underline;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: 50vh;
    }
    
    .close-button {
        font-size: 1.8rem;
    }
    
    /* Hero Stats and Main Content - Compact Design */
    .hero-stats {
        padding: 1.5rem 0;
    }
    
    .season-header {
        margin-bottom: 1.5rem;
    }
    
    .season-header h1 {
        font-size: 2rem;
    }
    
    .season-subtitle {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        gap: 1rem;
        max-width: 100%;
    }
    
    .stat-card {
        padding: 1rem;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .next-game-spotlight,
    .recent-games-section,
    .team-story {
        padding: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .game-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .game-details {
        align-items: flex-start;
        width: 100%;
    }
    
    .next-game-card .game-opponent {
        font-size: 1.1rem;
    }
    
    .story-content p {
        font-size: 0.95rem;
    }
    
    .team-motto {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Games Styling - Professional and Compact */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid var(--light-teal);
    background: var(--gray);
}

.game-item.win {
    border-left-color: var(--dark-teal);
    background-color: rgba(14, 60, 78, 0.03);
}

.game-item.loss {
    border-left-color: var(--red);
    background-color: rgba(214, 31, 38, 0.03);
}

.game-date {
    font-weight: 600;
    color: var(--navy-blue);
    min-width: 100px;
    font-size: 0.9rem;
}

.game-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.game-opponent {
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.game-result {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-result i {
    font-size: 0.8rem;
}

.win .game-result {
    color: var(--dark-teal);
}

.loss .game-result {
    color: var(--red);
}

/* Next Game Styles - Clean and Professional */
.next-game-card {
    background: var(--navy-blue);
    color: var(--white);
    padding: 1.25rem;
    border-radius: 6px;
    text-align: center;
    border: 2px solid var(--light-teal);
}

.next-game-card.today {
    background: var(--red);
    border-color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.game-header {
    margin-bottom: 0.75rem;
}

.game-date {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.today-badge {
    background-color: var(--white);
    color: var(--red);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
    font-weight: 700;
}

.next-game-card .game-opponent {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--light-teal);
}

.game-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.no-games {
    text-align: center;
    color: var(--dark-gray);
    font-style: italic;
    opacity: 0.6;
}

/* Responsive Design - Compact and Clean */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-secondary {
        order: -1;
    }
    
    .stats-grid {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}


@media (max-width: 480px) {
    .hero {
        height: 40vh;
    }
    
    .season-header h1 {
        font-size: 1.75rem;
    }
    
    .season-subtitle {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 200px;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .next-game-spotlight,
    .recent-games-section,
    .team-story {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
}