/* ============================================
   SAFARIBET THEME - responsive.css (moban-86)
   ============================================ */

/* === TABLET LANDSCAPE (max-width: 1024px) === */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    /* Header */
    .header-top {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-time {
        display: none;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Hero */
    .safari-hero {
        min-height: 500px;
    }

    .hero-brand {
        font-size: 52px;
        letter-spacing: 5px;
    }

    .hero-tagline {
        font-size: 22px;
        letter-spacing: 3px;
    }

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

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

    /* Acacia Trees */
    .acacia-left {
        left: 2%;
        width: 80px;
        height: 120px;
    }

    .acacia-right {
        right: 3%;
        width: 70px;
        height: 100px;
    }

    /* Safari Games */
    .safari-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Safari Grid */
    .safari-grid-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .safari-grid-node {
        flex: 0 0 calc(25% - 10px);
        min-width: 100px;
        padding: 15px 10px;
    }

    /* Safari Features */
    .safari-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Safari Stats */
    .safari-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Safari Promos */
    .safari-promos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .safari-promos-grid .safari-promo-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .home-news-grid .article-card:last-child {
        display: none;
    }

    /* Article Grid */
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    /* Sidebar */
    .floating-sidebar {
        right: 8px;
    }

    .sidebar-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Footer CTA */
    .footer-cta-inner h2 {
        font-size: 34px;
    }
}

/* === TABLET PORTRAIT (max-width: 768px) === */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    /* Header */
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo img {
        height: 40px;
    }

    .header-btn-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

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

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
        margin: 10px 0;
    }

    .main-navigation .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

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

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(230, 126, 34, 0.1);
        font-size: 14px;
    }

    .nav-link::after {
        display: none;
    }

    /* Hero */
    .safari-hero {
        min-height: 450px;
        border-radius: 0 0 10px 10px;
    }

    .hero-brand {
        font-size: 40px;
        letter-spacing: 3px;
    }

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

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

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

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

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

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

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

    /* Acacia Trees */
    .acacia-tree {
        display: none;
    }

    /* Animal Silhouettes */
    .animal-silhouettes {
        display: none;
    }

    /* Section Titles */
    .section-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

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

    /* Safari Games */
    .safari-games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

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

    .safari-game-card h3 {
        font-size: 24px;
    }

    /* Safari Grid */
    .safari-grid-row {
        gap: 8px;
    }

    .safari-grid-node {
        flex: 0 0 calc(50% - 8px);
        min-width: 0;
        padding: 15px 10px;
    }

    .grid-node-icon i {
        font-size: 22px;
    }

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

    /* Safari Features */
    .safari-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    /* Safari Stats */
    .safari-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

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

    /* Safari Promos */
    .safari-promos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .safari-promos-grid .safari-promo-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    /* News */
    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .home-news-grid .article-card:last-child {
        display: block;
    }

    /* Article Grid */
    .article-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Single Article */
    .single-article {
        padding: 20px 15px;
    }

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

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    /* Related Posts */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Category Header */
    .category-title {
        font-size: 28px;
    }

    /* Provider Tabs */
    .provider-tabs {
        gap: 6px;
    }

    .provider-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* Footer */
    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .site-footer {
        padding: 30px 0 20px;
    }

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

    .license-icons {
        gap: 15px;
    }

    /* Footer CTA */
    .footer-cta-section {
        padding: 50px 0;
        border-radius: 10px;
    }

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

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

    .cta-features {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

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

    /* Sidebar */
    .floating-sidebar {
        bottom: 15px;
        top: auto;
        transform: none;
        right: 10px;
        flex-direction: row;
        gap: 6px;
    }

    .sidebar-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .sidebar-label {
        display: none !important;
    }

    /* Error Page */
    .error-code {
        font-size: 80px;
    }

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

    .error-desc {
        font-size: 14px;
    }

    /* Announcement Modal */
    .announcement-content {
        padding: 20px 15px;
        width: 95%;
    }

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

    .announcement-item {
        padding: 10px;
    }

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

    /* Page Article */
    .page-article {
        padding: 20px 15px;
    }

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

    /* Notification Bar */
    .notification-content {
        font-size: 12px;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 12px;
        padding: 10px 0;
    }

    /* Pagination */
    .pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

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

    /* Hero */
    .safari-hero {
        min-height: 380px;
    }

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

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

    .hero-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

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

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

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

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

    /* Grass */
    .grass-layer-1 { height: 50px; }
    .grass-layer-2 { height: 35px; }
    .grass-layer-3 { height: 20px; }

    /* Section Titles */
    .section-title {
        font-size: 24px;
    }

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

    /* Safari Grid */
    .safari-grid-node {
        flex: 0 0 calc(50% - 6px);
        padding: 12px 8px;
    }

    /* Stats */
    .safari-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .safari-stat-card {
        padding: 20px 10px;
    }

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

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

    .stat-paw-decoration i {
        font-size: 18px;
    }

    /* Promos */
    .safari-promo-inner {
        padding: 20px 15px;
    }

    .safari-promo-inner h3 {
        font-size: 20px;
    }

    /* Related Posts */
    .related-grid {
        grid-template-columns: 1fr;
    }

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

    /* Footer CTA */
    .footer-cta-inner h2 {
        font-size: 24px;
    }

    .cta-sunset-outer {
        width: 60px;
        height: 60px;
    }

    .cta-sunset-inner {
        width: 30px;
        height: 30px;
    }

    /* Error Page */
    .error-code {
        font-size: 60px;
    }

    .error-title {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .error-safari-icon i {
        font-size: 48px;
    }

    /* Announcement */
    .announcement-header-icon i {
        font-size: 36px;
    }

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

    .announcement-cta {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Footer */
    .footer-18plus {
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 14px;
    }

    .footer-social-links a {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .footer-col h4 {
        font-size: 20px;
    }

    /* Article Card */
    .article-card-thumb {
        height: 150px;
    }

    .article-card-title span,
    .article-card-title a {
        font-size: 18px;
    }

    /* View More */
    .view-more-btn {
        padding: 12px 25px;
        font-size: 13px;
        max-width: 200px;
    }

    /* Content Area */
    .content-area {
        flex-direction: column;
        padding: 15px 0;
    }

    /* Sidebar float */
    .floating-sidebar {
        gap: 4px;
    }

    .sidebar-btn {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    /* Single Article */
    .article-nav {
        flex-direction: column;
        gap: 10px;
    }

    /* License */
    .license-icons {
        gap: 12px;
    }

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

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

    /* Sunset BG performance */
    .sunset-gradient-bg {
        animation-duration: 12s;
    }

    /* Reduce animation complexity for performance */
    .savanna-grass {
        animation-duration: 6s !important;
    }

    .animal-silhouettes {
        display: none;
    }
}

/* === VERY SMALL MOBILE (max-width: 360px) === */
@media (max-width: 360px) {
    .hero-brand {
        font-size: 28px;
    }

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

    .hero-stats-row {
        flex-direction: column;
        gap: 10px;
    }

    .safari-grid-node {
        flex: 0 0 100%;
    }

    .safari-stats-grid {
        grid-template-columns: 1fr;
    }

    .header-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-login,
    .btn-register,
    .btn-demo {
        text-align: center;
        width: 100%;
    }
}

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

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

    .hero-description {
        margin-bottom: 15px;
    }

    .hero-stats-row {
        margin-bottom: 15px;
    }

    .floating-sidebar {
        gap: 4px;
    }

    .sidebar-btn {
        width: 35px;
        height: 35px;
    }
}

/* === PRINT STYLES === */
@media print {
    .site-header,
    .site-footer,
    .floating-sidebar,
    .notification-bar,
    .announcement-modal,
    .footer-cta-section,
    .safari-promos,
    .hero-cta-group {
        display: none !important;
    }

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

    .article-content,
    .page-content {
        color: #000;
    }

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

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

    html {
        scroll-behavior: auto;
    }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    body {
        color: #fff;
    }

    .article-card,
    .safari-game-card,
    .safari-feature-card,
    .safari-stat-card,
    .safari-promo-card {
        border-width: 2px;
        border-color: #E67E22;
    }

    a {
        color: #F39C12;
    }

    .nav-link {
        color: #fff;
    }
}

/* === DARK MODE OPTIMIZATION === */
@media (prefers-color-scheme: dark) {
    .safari-hero,
    .site-header {
        border-bottom-color: #E67E22;
    }
}

/* === LARGE DESKTOP (min-width: 1400px) === */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

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

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

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

    .safari-games-grid {
        gap: 30px;
    }

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