/* Mobile First Responsive Design */

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
    
    p { font-size: 0.875rem; }
    
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Header */
    .nav {
        padding: 0.75rem 15px;
        min-height: 60px;
    }
    
    .nav__title {
        font-size: 1.25rem;
    }
    
    .nav__actions {
        gap: 12px;
    }
    
    .nav__cta .btn--secondary {
        display: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Language Switcher Mobile */
    .language-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .language-dropdown {
        min-width: 160px;
        right: -10px;
    }
    
    .language-option {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero__title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero__actions {
        justify-content: center;
        gap: 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn--large {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .hero__image {
        order: -1;
    }
    
    .hero__chicken {
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Animated Coins - Reduce on mobile */
    .coin {
        font-size: 1.5rem;
    }
    
    /* Intro Section */
    .intro {
        padding: 40px 0;
    }
    
    .intro__content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .intro__image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .intro__text p {
        font-size: 1rem;
    }
    
    /* Section Styles */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-image {
        max-width: 300px;
    }
    
    /* Game Features */
    .features-table {
        margin: 0 16px;
    }
    
    .feature-row {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .feature-label,
    .feature-value {
        font-size: 1rem;
    }
    
    /* Symbols Grid */
    .symbols-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 16px;
    }
    
    .symbol-card {
        padding: 20px;
    }
    
    .symbol-icon {
        font-size: 2.5rem;
    }
    
    .symbol-icon i {
        font-size: inherit;
    }
    
    .symbol-name {
        font-size: 1.25rem;
    }
    
    /* Special Symbols */
    .special-symbols-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 16px;
    }
    
    .special-symbol-card {
        padding: 25px;
    }
    
    .special-symbol-card .symbol-icon {
        font-size: 3rem;
    }
    
    .special-symbol-card .symbol-icon i {
        font-size: inherit;
    }
    
    /* Bonus Features */
    .bonus-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 16px;
    }
    
    .bonus-card h3 {
        padding: 15px 20px 10px;
        font-size: 1.25rem;
    }
    
    .bonus-card p {
        padding: 0 20px 20px;
    }
    
    /* How to Play */
    .step {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
    }
    
    /* Strategies */
    .strategy-tabs {
        flex-direction: column;
        gap: 5px;
        max-width: 300px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .accordion-header {
        padding: 20px;
        font-size: 1rem;
    }
    
    .accordion-content p {
        padding: 0 20px 20px;
    }
    
    /* Reviews */
    .reviews-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 16px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-card::before {
        font-size: 3rem;
        top: -5px;
        left: 15px;
    }
    
    /* Pros and Cons */
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 16px;
    }
    
    .pros-column,
    .cons-column {
        padding: 20px;
    }
    
    .pros-title,
    .cons-title {
        font-size: 1.25rem;
    }
    
    /* FAQ */
    .faq-accordion {
        margin: 0 16px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
    }
    
    /* Final CTA */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-features {
        gap: 20px;
        margin-bottom: 2rem;
    }
    
    .cta-feature i {
        font-size: 1.5rem;
    }
    
    .cta-feature span {
        font-size: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Footer */
    .footer__links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer__disclaimer {
        font-size: 0.8rem;
        margin: 0 16px 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav__logo span {
        display: none;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Typography */
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.375rem; }
    
    /* Hero Section */
    .hero__content {
        gap: 40px;
    }
    
    .hero__title {
        font-size: 3.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
    }
    
    /* Intro Section */
    .intro__content {
        grid-template-columns: 350px 1fr;
        gap: 40px;
    }
    
    .intro__text p {
        font-size: 1.0625rem;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        max-width: 1000px;
    }
    
    .hero__content {
        gap: 50px;
    }
    
    .intro__content {
        gap: 50px;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }
    
    .hero__title {
        font-size: 4.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.375rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .hero__background img,
    .intro__image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 20px;
    }
    
    .hero__content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        text-align: left;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 0.875rem;
    }
    
    .hero__actions {
        justify-content: flex-start;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .btn--large {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero__coins,
    .btn,
    .language-switcher {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero__content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero__title {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .hero__subtitle {
        color: #333 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
}

/* Reduced 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__chicken,
    .coin,
    .preloader-logo {
        animation: none !important;
    }
    
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .language-btn:focus,
    .nav__toggle:focus {
        outline: 2px solid #ffd700;
        outline-offset: 2px;
    }
    
    .language-option:focus {
        background: #e9ecef;
        outline: 2px solid #ffd700;
        outline-offset: -2px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .language-btn {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .language-option {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .nav__toggle {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .language-btn:hover,
    .language-option:hover {
        transform: none;
        box-shadow: inherit;
        background: inherit;
    }
}
