/* ==========================================================================
   Mobile Responsive CSS - Add to all pages
   ========================================================================== */

/* Mobile Navigation - Hamburger Menu */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--white);
        margin: 5px 0;
        transition: 0.3s;
    }

    /* Dropdown on mobile */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(30, 58, 138, 0.3);
        margin: 0;
        padding: 0;
    }

    .nav-item:hover .dropdown {
        display: none;
    }

    .nav-item.active .dropdown {
        display: block;
    }

    .dropdown a {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .widgets-grid {
        grid-template-columns: 1fr !important;
    }

    .matches-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile Styles */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .match-card {
        padding: 1rem !important;
    }

    .widget {
        padding: 1rem !important;
    }

    .stats-grid,
    .info-grid {
        grid-template-columns: 1fr !important;
    }

    table {
        font-size: 0.85rem !important;
    }

    .team-logo-large {
        font-size: 3rem !important;
    }

    .language-switcher {
        display: none !important;
    }
}

/* Touch Targets - Minimum 44x44px */
@media (max-width: 768px) {
    button,
    a,
    .nav-menu a,
    .dropdown a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0 !important;
    }

    .team-hero {
        padding: 2rem 0 !important;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .nav-menu,
    .language-switcher {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white, #ffffff);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary, #004BA0);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Improved focus indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--secondary, #f59e0b);
    outline-offset: 2px;
}

/* Loading indicator */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white, #fff);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
