/* Responsive Styles for DogHowl Games */

@media (max-width: 1600px) {
   .section-title {
        font-size: 68px;
    }
}

@media (max-width: 1400px) {
   .section-title {
        font-size: 58px;
    }
    .one-game-title h3 a {
        font-size: 20px;
    }
    .one-game-genre {
        font-size: 10px;
    }
    .one-game-links ul li img {
        width:20px;
    }
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 38px;
    }
     .one-game-title h3 a {
        font-size: 18px;
    }
    .one-game-genre {
        font-size: 10px;
    }
     .one-game-links ul li img {
        width:18px;
    }
}

/* Tablet and below (992px) */
@media (max-width: 992px) {

    /* News Scroller Responsive */
    .news-item.active {
        flex-direction: column;
        gap: 20px;
    }

    .news-item-image {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }

    .news-item-content {
        text-align: center;
    }

    .news-date {
        justify-content: center;
    }

    .news-item-content h3 {
        font-size: 24px;
    }

    /* Adjust section titles */
    .section-title {
        font-size: 48px;
    }

    h4 {
        font-size: 18px;
    }

    .arrow-down {
        width: 30px;
    }

    /* Our Games Section - Flex-based grid */
    .games {
        gap: 20px;
    }

    /* Header Responsive - Floating/Fixed */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto !important;
        padding: 10px 0;
        z-index: 2005;
        /* Above mobile menu overlay (1998) and panel (1999) */
        backdrop-filter: blur(10px);
        background: linear-gradient(90deg, rgba(255, 88, 149, 0.9) 0%, rgba(188, 110, 255, 0.9) 100%);
        transition: all 0.3s ease;
    }

    /* Adjust header when menu is open */
    body.no-scroll header {
        background: transparent !important;
        backdrop-filter: none !important;
    }

    body.no-scroll header .logo {
        opacity: 0;
        visibility: hidden;
    }

    /* Add offset for fixed header */
    body {
        padding-top: 80px;
        /* Adjust based on header height */
    }

    header .content,
    header .container-fluid {
        height: auto !important;
        min-height: 46px;
    }

    /* Hide desktop nav and socials */
    .header-right nav,
    .header-right .social {
        display: none !important;
    }

    /* Show burger menu */
    .burger-menu {
        display: flex !important;
    }

    /* Contacts Section Responsive */
    #subscribe {
        gap: 20px;
        padding: 30px;
    }

    .subscribe-image {
        flex: 0 0 180px;
    }
}

/* Medium tablets (768px) */
@media (max-width: 768px) {

    /* Header Responsive */
    .header-right nav {
        display: none;
    }

    .content {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero .section-title {
        font-size: 36px;
    }

    .hero p {
        font-size: 14px;
    }

    /* About Section */
    .about p {
        font-size: 14px;
    }

    .section-title {
        font-size: 36px;
    }

    h4 {
        font-size: 16px;
    }

    .about p strong {
        font-size: 20px;
    }

    /* Show burger menu */
    .burger-menu {
        display: flex;
    }

    .hero,
    .about,
    .contacts {
        min-height: auto;
        padding: 80px 0;
    }

    #subscribe {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        max-width: 100%;
    }

    .subscribe-image {
        flex: 0 0 auto;
        width: 160px;
        margin-bottom: 20px;
    }

    .subscribe-form p {
        padding-right: 0;
    }

    .subscribe-form form {
        flex-direction: column;
    }

    #subscribe input {
        width: 100%;
        min-width: 0;
    }

    #subscribe button {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile portrait (576px) */
@media (max-width: 576px) {
    
    .about {
        background-size: 70%;
    }

    .games {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 15px;
    }

    /* Home page games scroller - Hide by default, shown by JS */
    .our-games .one-game {
        display: none;
        width: 100%;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    /* Our Games page grid - Always 2 columns even on small mobile */
    .our-games-page .one-game {
        display: block;
        width: calc(50% - 7.5px);
        /* 2 items, 15px gap */
        min-width: 0;
        /* Override desktop min-width */
    }

    .our-games .one-game.active {
        display: block;
        opacity: 1;
    }

    /* Consistent side padding for all sections on mobile */
    .content,
    section .content,
    header .content,
    footer .content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* News Scroller Mobile */
    .news-item.active {
        padding: 20px;
    }

    .news-item-image {
        height: 200px;
    }

    .news-item-content h3 {
        font-size: 20px;
    }

    .news-text {
        font-size: 14px;
    }

    .news-controls {
        gap: 20px;
        margin-top: 30px;
    }

    .news-arrow {
        /* Basic styles inherited, frames removed */
    }

    .news-arrow img {
        width: 16px;
        height: 16px;
    }

    .news-counter {
        font-size: 16px;
    }

    .news-current {
        font-size: 20px;
    }

    /* Header Mobile */
    .logo img {
        max-width: 120px;
    }

    .social {
        gap: 10px;
        margin-left: 0;
        /* Reset desktop margin */
    }

    .social li a img {
        width: 24px;
        height: 24px;
    }

    /* General Mobile */
    .section-title {
        font-size: 28px;
    }

    h4 {
        font-size: 14px;
    }

    .arrow-down {
        width: 20px;
    }

    .about p strong {
        font-size: 18px;
    }

    section {
        padding: 40px 0;
    }

    .content {
        padding: 0 10px;
    }

    /* Hero Section */
    .hero .section-title {
        font-size: 28px;
    }

    .link {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* About Section */
    .about .section-title {
        font-size: 28px;
    }

    .about p {
        margin-bottom: 25px;
    }

    .hero,
    .about,
    .contacts {
        min-height: auto;
        padding: 50px 0;
    }

    .hero p {
        margin-bottom: 25px;
    }

    /* Our Games Mobile */
    .one-game-content {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }
    
    .our-games .one-game-title h3 {
        font-size: 28px;
    }

    .one-game-title h3 {
        font-size: 14px;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .our-games .one-game-genre {
        font-size: 14px;
        text-align: center;
    }

    .one-game-genre {
        font-size: 9px;
        text-align: center;
    }

    .one-game-links ul {
        justify-content: center;
    }
    
    .our-games .one-game-links ul img {
        width: 26px;
    }

    /* Footer Mobile */
    footer {
        min-height: auto;
        padding: 15px 0 25px;
    }

    footer .container-fluid {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    footer .links {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

/* Small mobile (400px) */
@media (max-width: 400px) {
    .section-title {
        font-size: 24px;
    }

    .news-item.active {
        padding: 15px;
        gap: 15px;
    }

    .news-item-image {
        height: 180px;
    }

    .news-item-content h3 {
        font-size: 18px;
    }

    .news-controls {
        gap: 15px;
    }

    .news-arrow {
        width: 36px;
        height: 36px;
    }
}