/* Mobile First Responsive Design */

/* Small devices (phones, 576px and up) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-container {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .search-1v1 {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vs-divider {
        margin: 0.5rem 0;
        font-size: 1rem;
    }
    
    .teams-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-section {
        padding: 1rem;
    }
    
    .vs-divider {
        text-align: center;
        font-size: 1.5rem;
        padding: 1rem 0;
    }
    
    .team-section h3 {
        font-size: 1.1rem;
    }
    
    .matchup-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .champion-pair {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .champion {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    /* Alert responsive */
    .alert {
        margin: var(--space-4) var(--space-3) var(--space-5) var(--space-3);
        padding: var(--space-4);
    }
    
    .alert-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .alert-toggle {
        align-self: stretch;
        justify-content: center;
    }
    
    .champion-accordions {
        gap: var(--space-2);
    }
    
    .champion-accordion-header {
        padding: var(--space-2) var(--space-3);
    }
    
    .matchup-items {
        padding: var(--space-3);
        grid-template-columns: 1fr;
        column-gap: 0;
    }
    
    .champion-icon {
        width: 40px;
        height: 40px;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .search-1v1 {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .vs-divider {
        margin: 1rem 0;
    }
    
    .teams-container {
        grid-template-columns: 1fr auto 1fr;
        gap: 1.5rem;
    }
    
    .matchup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .matchup-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .search-1v1 {
        flex-direction: row;
        align-items: end;
    }
    
    .teams-container {
        grid-template-columns: 1fr auto 1fr;
    }
    
    .matchup-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .matchup-items {
        grid-template-columns: 1fr 1fr;
        column-gap: var(--space-3);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    .search-1v1 {
        flex-direction: row;
        align-items: end;
    }
    
    .teams-container {
        grid-template-columns: 1fr auto 1fr;
    }
    
    .matchup-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .champion-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .search-container {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
        padding: 1rem 0;
    }
    
    .matchup-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .search-container {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .champion-select input {
        background: #3d3d3d;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .champion-dropdown {
        background: #3d3d3d;
        border-color: #555;
    }
    
    .champion-option:hover {
        background-color: #4d4d4d;
    }
    
    .matchup-card {
        background: #2d2d2d;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .featured-matchups {
        background: #1a1a1a;
    }
    
    .featured-matchups h3 {
        color: #e0e0e0;
    }
}
