/* 
* TurboGame - Responsive Styles
* Mobile-first responsive design for different screen sizes
*/

/* ===== Small devices (phones, less than 576px) ===== */
@media (max-width: 575.98px) {
    :root {
        --font-size-3xl: 2.2rem;
        --font-size-2xl: 1.8rem;
        --font-size-xl: 1.2rem;
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        flex-direction: column;
        background: rgba(5, 5, 24, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: all var(--transition-normal);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: var(--spacing-md) 0;
        z-index: var(--z-modal);
    }
    
    .nav-menu.active {
        top: 70px;
    }
    
    .nav-menu li {
        margin: var(--spacing-xs) 0;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .about-image {
        margin-bottom: var(--spacing-md);
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .about-stats li {
        margin-bottom: var(--spacing-sm);
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial-card {
        margin-bottom: var(--spacing-md);
    }
    
    .contact-grid {
        flex-direction: column;
    }
    
    .contact-image {
        margin-top: var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .related-articles {
        grid-template-columns: 1fr;
    }
    
    .thanks-buttons {
        flex-direction: column;
    }
    
    .thanks-buttons .btn {
        width: 100%;
    }
}

/* ===== Medium devices (tablets, 576px to 767px) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --font-size-3xl: 2.5rem;
        --font-size-2xl: 2rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        flex-direction: column;
        background: rgba(5, 5, 24, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: all var(--transition-normal);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: var(--spacing-md) 0;
        z-index: var(--z-modal);
    }
    
    .nav-menu.active {
        top: 70px;
    }
    
    .nav-menu li {
        margin: var(--spacing-xs) 0;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .about-image {
        margin-bottom: var(--spacing-md);
    }
    
    .contact-grid {
        flex-direction: column;
    }
    
    .contact-image {
        margin-top: var(--spacing-md);
    }
    
    .article-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: center;
    }
}

/* ===== Large devices (desktops, 768px to 991px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        flex-direction: column;
        background: rgba(5, 5, 24, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: all var(--transition-normal);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: var(--spacing-md) 0;
        z-index: var(--z-modal);
    }
    
    .nav-menu.active {
        top: 70px;
    }
    
    .nav-menu li {
        margin: var(--spacing-xs) 0;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Extra large devices (large desktops, 992px to 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Super extra large devices (larger desktops, 1200px and above) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .full-blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Portrait orientation tweaks ===== */
@media (orientation: portrait) {
    .hero-section {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: var(--spacing-lg);
    }
}

/* ===== Print styles ===== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .hero-section, 
    .subscription-section, 
    .cookie-banner, 
    .back-to-top, 
    .footer-newsletter,
    .social-share,
    .article-related {
        display: none;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    a {
        color: blue;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        text-shadow: none;
    }
    
    .footer {
        border-top: 1px solid #ccc;
        background: white;
    }
}
