/* responsive.css - Responsive Design for Juegos de la Unidad */

/* Tablet Styles */
@media (max-width: 768px) {
    /* Header Responsive */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
        gap: 15px;
    }
    
    /* Hero Section Responsive */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    /* Form Container Responsive */
    .form-container {
        margin: 20px;
        border-radius: 15px;
    }
    
    .form-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    /* General Layout Adjustments */
    .main-content {
        padding-top: 80px;
    }
    
    .landing-section,
    .form-section {
        padding: 20px 15px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Header Mobile */
    .header-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .logo-section .logo {
        height: 50px;
    }
    
    .main-content {
        padding-top: 70px;
    }
    
    /* Hero Mobile */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* Form Mobile */
    .form-container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .form-header {
        padding: 15px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    /* Button Mobile */
    .action-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .btn-icon {
        font-size: 1.1em;
    }
    
    /* Sections Mobile */
    .landing-section,
    .form-section {
        padding: 15px 10px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .form-container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
    
    .sports-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ultra-wide Desktop Styles */
@media (min-width: 1600px) {
    .header-container,
    .form-container {
        max-width: 1400px;
    }
    
    .sports-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .hero-content {
        max-width: 1000px;
    }
}

/* Portrait Orientation */
@media (orientation: portrait) and (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .action-buttons {
        margin-top: 30px;
    }
    
    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .action-buttons {
        gap: 15px;
    }
    
    .landing-section,
    .form-section {
        padding: 20px 15px;
    }
}

/* High DPI / Retina Displays */
@media (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .sport-card-logo,
    .sport-logo,
    .sport-logo-large {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
    }
    
    .success-icon {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Note: Dark mode can be implemented here if needed for Juegos de la Unidad */
    /* Currently maintaining light theme for better visibility of sports content */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
    
    .action-btn,
    .sport-basic-card,
    .form-input,
    .form-select {
        border-width: 3px;
    }
    
    .nav-link {
        border-bottom-width: 3px;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .mobile-menu-toggle,
    .action-btn,
    .form-actions,
    .loading-overlay {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .form-section.active {
        display: block;
        background: white;
    }
    
    .form-container {
        box-shadow: none;
        border: 1px solid black;
    }
    
    .form-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid black;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .form-grid {
        display: block;
    }
    
    .form-group {
        margin-bottom: 15pt;
        page-break-inside: avoid;
    }
}