/* 
 * Junior Current Website
 * Responsive Design Rules
 */

/* Mobile First Approach */

/* Base styles for mobile are in styles.css */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--navy-blue);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--white);
        position: relative;
        transition: background-color 0.3s ease;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background-color: var(--white);
        transition: transform 0.3s ease;
    }
    
    .hamburger::before {
        top: -8px;
    }
    
    .hamburger::after {
        top: 8px;
    }
    
    .mobile-menu-toggle.active .hamburger {
        background-color: transparent;
    }
    
    .mobile-menu-toggle.active .hamburger::before {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger::after {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        height: 30vh;
    }
    
    .schedule-table {
        display: block;
        overflow-x: auto;
    }
    
    .player-cards,
    .award-cards,
    .coach-cards {
        grid-template-columns: 1fr;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .player-cards,
    .award-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coach-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    h1 {
        font-size: 2.2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .player-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .award-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    h1 {
        font-size: 2.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .player-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .award-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}