/* ============================================
   DARKFOREST THEME - responsive.css (moban-143)
   Responsive Styles for Dark Forest Theme
   ============================================ */

/* === TABLET LANDSCAPE (max-width: 1200px) === */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .forest-star-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .forest-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .forest-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .forest-promos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === TABLET PORTRAIT (max-width: 992px) === */
@media screen and (max-width: 992px) {
    .header-top {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-time {
        display: none;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0a1f12;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        border-top: 1px solid rgba(255, 215, 0, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    .nav-link {
        padding: 15px 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: relative;
    }

    .darkforest-hero {
        min-height: 500px;
        padding: 40px 15px;
    }

    .hero-brand {
        font-size: 42px;
    }

    .hero-tagline {
        font-size: 20px;
    }

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

    .hero-stats-row {
        gap: 25px;
    }

    .hero-stat-number {
        font-size: 26px;
    }

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

    .forest-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .license-icons {
        gap: 20px;
    }
}

/* === MOBILE LARGE (max-width: 768px) === */
@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header-btn-group {
        gap: 5px;
    }

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 8px 12px;
        font-size: 11px;
    }

    .darkforest-hero {
        min-height: 450px;
        margin: 20px 0;
        border-radius: 15px;
    }

    .hero-brand {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .hero-stats-row {
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 24px;
    }

    .hero-stat-label {
        font-size: 11px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-gold-primary,
    .btn-outline-gold {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    .forest-star-games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .forest-star-game-card {
        padding: 25px 15px;
    }

    .forest-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .forest-feature-card {
        padding: 25px 15px;
    }

    .forest-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .forest-stat-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 36px;
    }

    .forest-promos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .forest-promo-inner {
        padding: 25px 15px;
    }

    .forest-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .forest-grid-node {
        padding: 20px 10px;
    }

    .forest-node-icon i {
        font-size: 28px;
    }

    .forest-node-label {
        font-size: 12px;
    }

    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card-thumb {
        height: 160px;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col ul {
        display: inline-block;
        text-align: left;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-license-bar {
        padding: 25px 0;
    }

    .license-icons {
        gap: 15px;
    }

    .license-item i {
        font-size: 24px;
    }

    .license-item span {
        font-size: 11px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-item-thumb {
        height: 120px;
    }

    .article-title {
        font-size: 26px;
    }

    .article-meta {
        gap: 10px;
        font-size: 12px;
    }

    .article-content {
        font-size: 15px;
    }

    .single-article {
        padding: 20px;
    }

    .provider-tabs {
        gap: 8px;
    }

    .provider-tab {
        padding: 8px 15px;
        font-size: 12px;
    }

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

    .search-submit {
        width: 100%;
    }

    .error-404 {
        padding: 60px 15px;
    }

    .error-404-icon {
        font-size: 60px;
    }

    .error-404 h1 {
        font-size: 36px;
    }

    .announcement-content {
        padding: 25px 20px;
        max-height: 85vh;
    }

    .announcement-title {
        font-size: 18px;
    }

    .announcement-header-icon i {
        font-size: 40px;
    }

    .announcement-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .announcement-text {
        font-size: 12px;
    }

    .cta-features {
        flex-direction: column;
        gap: 15px;
    }

    .footer-cta-inner h2 {
        font-size: 28px;
    }

    .footer-cta-inner p {
        font-size: 14px;
    }

    .cta-main-btn {
        font-size: 16px;
        padding: 15px 40px;
    }
}

/* === MOBILE SMALL (max-width: 576px) === */
@media screen and (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 40px;
    }

    .header-top {
        padding: 12px 0;
    }

    .btn-login {
        display: none;
    }

    .darkforest-hero {
        min-height: 400px;
        padding: 30px 10px;
    }

    .hero-brand {
        font-size: 30px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .hero-divider-line {
        width: 80px;
    }

    .hero-stats-row {
        gap: 15px;
    }

    .hero-stat-number {
        font-size: 22px;
    }

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

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .forest-star-game-icon i {
        font-size: 40px;
    }

    .forest-star-game-card h3 {
        font-size: 18px;
    }

    .forest-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .forest-grid-node {
        padding: 15px 8px;
    }

    .forest-node-icon i {
        font-size: 24px;
    }

    .forest-node-label {
        font-size: 11px;
    }

    .forest-feature-icon {
        width: 60px;
        height: 60px;
    }

    .forest-feature-icon i {
        font-size: 24px;
    }

    .forest-feature-card h3 {
        font-size: 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    .promo-icon i {
        font-size: 32px;
    }

    .forest-promo-card h3 {
        font-size: 16px;
    }

    .btn-promo {
        padding: 10px 25px;
        font-size: 12px;
    }

    .article-card-thumb {
        height: 140px;
    }

    .article-card-title {
        font-size: 14px;
        padding: 12px;
        min-height: 50px;
    }

    .article-card-excerpt {
        font-size: 12px;
    }

    .view-more-btn {
        padding: 10px 25px;
        font-size: 13px;
    }

    .gold-view-more {
        max-width: 180px;
    }

    .footer-18plus {
        font-size: 12px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .category-title {
        font-size: 28px;
    }

    .pagination .page-numbers {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .announcement-content {
        width: 95%;
        padding: 20px 15px;
    }

    .announcement-title {
        font-size: 16px;
    }

    .announcement-cta {
        padding: 10px 30px;
        font-size: 13px;
    }

    .footer-cta-section {
        padding: 40px 15px;
    }

    .footer-cta-inner h2 {
        font-size: 24px;
    }

    .cta-forest-tree {
        width: 50px;
        height: 50px;
    }
}

/* === MOBILE EXTRA SMALL (max-width: 400px) === */
@media screen and (max-width: 400px) {
    .logo img {
        height: 35px;
    }

    .btn-register,
    .btn-demo {
        padding: 8px 10px;
        font-size: 10px;
    }

    .darkforest-hero {
        min-height: 350px;
    }

    .hero-brand {
        font-size: 26px;
    }

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

    .hero-stat-number {
        font-size: 20px;
    }

    .hero-stat-label {
        font-size: 10px;
    }

    .btn-gold-primary,
    .btn-outline-gold {
        padding: 10px 20px;
        font-size: 13px;
    }

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

    .forest-star-game-icon i {
        font-size: 36px;
    }

    .forest-grid-row {
        gap: 6px;
    }

    .forest-grid-node {
        padding: 12px 6px;
    }

    .forest-node-icon i {
        font-size: 20px;
    }

    .forest-node-label {
        font-size: 10px;
    }

    .stat-number {
        font-size: 28px;
    }

    .article-title {
        font-size: 20px;
    }

    .category-title {
        font-size: 24px;
    }

    .error-404 h1 {
        font-size: 28px;
    }

    .error-404-icon {
        font-size: 50px;
    }

    .footer-cta-inner h2 {
        font-size: 20px;
    }

    .cta-main-btn {
        font-size: 14px;
        padding: 12px 30px;
    }
}

/* === LANDSCAPE ORIENTATION === */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .darkforest-hero {
        min-height: 350px;
    }

    .announcement-content {
        max-height: 90vh;
    }

    .hero-brand {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 16px;
    }
}

/* === PRINT STYLES === */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .mobile-menu-toggle,
    .announcement-modal,
    .notification-bar {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .container {
        max-width: 100%;
    }

    .single-article {
        background: none;
        border: none;
        padding: 0;
    }

    .article-title,
    .section-title {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* === HIGH DPI / RETINA DISPLAYS === */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .logo img,
    .footer-brand-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .mist-layer,
    .canopy-leaf,
    .forest-glow-effect {
        animation: none !important;
    }
}

/* === DARK MODE PREFERENCE === */
@media (prefers-color-scheme: dark) {
    body {
        background: #0D0D0D;
    }
}

/* === LIGHT MODE OVERRIDE === */
@media (prefers-color-scheme: light) {
    body {
        background: #0D0D0D;
        color: #E8E8E0;
    }
}

/* === ADDITIONAL RESPONSIVE FIXES === */
@media screen and (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    .forest-star-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .forest-promos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === HOVER CAPABILITIES === */
@media (hover: hover) {
    .forest-star-game-card:hover .forest-star-game-glow {
        opacity: 1;
    }

    .forest-promo-card:hover .promo-forest-bg {
        opacity: 1;
    }
}

@media (hover: none) {
    .forest-star-game-glow,
    .promo-forest-bg {
        opacity: 0.5;
    }

    .btn-gold-primary:active,
    .btn-register:active {
        transform: scale(0.98);
    }
}

/* === POINTER CAPABILITIES === */
@media (pointer: coarse) {
    .nav-link {
        padding: 18px 20px;
    }

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 12px 18px;
    }

    .forest-grid-node {
        padding: 22px 12px;
    }
}

/* === WIDE SCREENS === */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }

    .forest-star-games-grid {
        gap: 30px;
    }

    .forest-features-grid {
        gap: 30px;
    }
}

/* === ULTRA WIDE SCREENS === */
@media screen and (min-width: 1800px) {
    .container {
        max-width: 1400px;
    }

    .darkforest-hero {
        min-height: 700px;
    }

    .hero-brand {
        font-size: 64px;
    }

    .hero-tagline {
        font-size: 28px;
    }
}
