/**
 * LUXURY DARK PREMIUM Responsive Styles
 * luotettavakasino.ai
 * Mobile-first approach
 */

/* =================================
   Small devices (landscape phones, 576px+)
   ================================= */

@media (min-width: 576px) {
    .hero h1 {
        font-size: calc(var(--text-5xl) * 0.9);
    }

    .hero-badges {
        gap: var(--space-5);
    }

    .hero-decor-1 {
        width: 150px;
        height: 150px;
    }
}

/* =================================
   Medium devices (tablets, 768px+)
   ================================= */

@media (min-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: var(--text-5xl);
    }

    .hero-subtitle {
        font-size: var(--text-xl);
    }

    .hero-decor-1 {
        width: 180px;
        height: 180px;
        right: 12%;
    }

    .hero-decor-2 {
        width: 100px;
        height: 100px;
        left: 10%;
    }

    .section-header h2 {
        font-size: var(--text-4xl);
    }

    .category-card {
        min-height: 240px;
    }

    .footer-grid {
        gap: var(--space-12);
    }
}

/* =================================
   Large devices (desktops, 1024px+)
   ================================= */

@media (min-width: 1024px) {
    .hero {
        min-height: 85vh;
    }

    .hero h1 {
        font-size: calc(var(--text-5xl) * 1.1);
    }

    .hero-decor-1 {
        width: 200px;
        height: 200px;
    }

    .hero-decor-2 {
        width: 120px;
        height: 120px;
    }

    .hero-decor-3 {
        width: 80px;
        height: 80px;
    }

    .category-card:hover .icon {
        transform: scale(1.1) rotate(-5deg);
    }
}

/* =================================
   Extra large devices (1200px+)
   ================================= */

@media (min-width: 1200px) {
    .hero h1 {
        font-size: calc(var(--text-5xl) * 1.15);
    }

    .hero-content {
        max-width: 1000px;
    }
}

/* =================================
   Mobile-only styles (max-width: 767px)
   ================================= */

@media (max-width: 767px) {
    .hero {
        padding: calc(var(--header-height-mobile) + var(--space-10)) 0 var(--space-12);
        min-height: auto;
    }

    .hero-decor,
    .hero-coin {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .hero-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-header h2 {
        font-size: var(--text-2xl);
    }

    .section-header p {
        font-size: var(--text-base);
    }

    .category-card {
        min-height: auto;
        padding: var(--space-5);
    }

    .category-card .icon {
        width: 48px;
        height: 48px;
    }

    .footer-brand {
        text-align: center;
        max-width: 100%;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-col h4 {
        margin-top: var(--space-4);
    }

    .footer-copyright {
        font-size: var(--text-xs);
    }
}

/* =================================
   Touch device optimizations
   ================================= */

@media (hover: none) and (pointer: coarse) {
    /* Disable hover transforms on touch */
    .btn:hover,
    .card:hover,
    .category-card:hover,
    .article-card:hover,
    .casino-card:hover,
    .nav-link:hover::after {
        transform: none;
    }

    .category-card:hover .icon {
        transform: none;
    }

    /* Ensure touch targets are at least 44px */
    .nav-link,
    .btn,
    .pagination-link,
    .mobile-menu-btn,
    .modal-close {
        min-height: 44px;
    }

    /* Remove hover-only shadows on touch */
    .btn-primary:hover {
        box-shadow: var(--shadow-gold);
    }
}

/* =================================
   Reduce motion
   ================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-decor,
    .hero-coin {
        animation: none !important;
    }

    .scroll-indicator-line::after {
        animation: none !important;
    }

    .hero h1,
    .hero-subtitle,
    .hero-badges,
    .hero-cta,
    .scroll-indicator {
        opacity: 1 !important;
        animation: none !important;
    }
}

/* =================================
   Print styles
   ================================= */

@media print {
    .header,
    .footer,
    .mobile-menu,
    .modal,
    .modal-backdrop,
    .btn,
    .pagination,
    .hero-decor,
    .hero-coin,
    .scroll-indicator {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .main-content {
        padding-top: 0 !important;
    }

    .main-wrapper {
        background: white !important;
    }

    a {
        color: black !important;
        text-decoration: underline !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        -webkit-text-fill-color: black !important;
        background: none !important;
    }

    .article-content {
        max-width: 100% !important;
    }

    .hero {
        background: white !important;
        padding: 20px 0 !important;
        min-height: auto !important;
    }

    .hero::before {
        display: none !important;
    }

    .category-card,
    .article-card,
    .casino-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* =================================
   High contrast mode
   ================================= */

@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
        --glass-border-gold: rgba(255, 215, 0, 0.5);
        --text-tertiary: #c0c0c0;
        --text-muted: #a0a0a0;
    }

    .btn-primary {
        border: 2px solid var(--gold-500);
    }

    .card,
    .category-card,
    .article-card,
    .casino-card {
        border-width: 2px;
    }

    .nav-link::after {
        height: 3px;
    }

    a {
        text-decoration: underline;
    }
}

/* =================================
   Dark mode (default, ensure consistency)
   ================================= */

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* =================================
   Landscape orientation tweaks
   ================================= */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height-mobile) + var(--space-6)) 0 var(--space-6);
    }

    .hero h1 {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-3);
    }

    .hero-subtitle {
        margin-bottom: var(--space-4);
    }

    .hero-badges {
        margin-bottom: var(--space-4);
    }

    .scroll-indicator {
        display: none;
    }
}

/* =================================
   Container query support (future)
   ================================= */

@supports (container-type: inline-size) {
    .grid {
        container-type: inline-size;
    }
}
