/**
 * FALF TV - Responsive Styles
 * Mobile-first responsive design
 */

/* ============================================
   TABLET STYLES (768px - 1023px)
   ============================================ */
@media (max-width: 1023px) {
    :root {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Navbar */
    .navbar-menu {
        gap: var(--spacing-md);
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Video Grid */
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-lg);
    }
    
    /* Section Header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
}

/* ============================================
   MOBILE STYLES (320px - 767px)
   ============================================ */
@media (max-width: 767px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Navbar */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .navbar-brand span {
        font-size: 1.2rem;
    }
    
    .navbar-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: var(--spacing-md);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu a {
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-menu a.active::after {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.5rem;
        cursor: pointer;
        padding: var(--spacing-sm);
    }
    
    /* Hero */
    .hero {
        min-height: 400px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Video Grid */
    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Video Card */
    .video-card:hover {
        transform: translateY(-4px);
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .video-meta {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    /* Section Header */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-header {
        padding-left: var(--spacing-md);
    }
    
    /* Category Grid */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .category-card {
        padding: var(--spacing-lg);
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ============================================
   SMALL MOBILE (320px - 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .video-meta span {
        font-size: 11px;
    }
}

/* ============================================
   LARGE DESKTOP (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .navbar {
        position: relative;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .video-card:hover {
        transform: none;
    }
    
    .video-card:active {
        transform: scale(0.98);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .footer,
    .btn,
    .video-badge,
    .live-badge {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .video-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
