/* ============================================
   MACAUBET THEME - responsive.css (moban-71)
   Oriental Casino Responsive Styles
   Breakpoints: 1024px, 768px, 480px
   ============================================ */

/* === TABLET (max-width: 1024px) === */
@media (max-width: 1024px) {

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

    .header-time {
        order: 3;
        width: 100%;
        text-align: center;
        font-size: 12px;
    }

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

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

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

    /* Hero */
    .macaubet-hero {
        min-height: 500px;
        padding: 40px 15px;
    }

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

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

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

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

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

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

    /* Game Grid */
    .game-grid-row {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

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

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

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

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

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

    /* Lanterns */
    .lantern {
        width: 30px;
        height: 45px;
    }

    .lantern-3, .lantern-5 {
        width: 22px;
        height: 33px;
    }

    /* Fan Patterns */
    .fan-pattern {
        width: 150px;
        height: 150px;
    }

    /* Dragon */
    .dragon-decoration {
        width: 70px;
        height: 140px;
    }

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

    .cta-features {
        gap: 15px;
    }
}

/* === MOBILE (max-width: 768px) === */
@media (max-width: 768px) {

    /* Base */
    .container {
        padding: 0 12px;
    }

    /* Header */
    .header-top {
        padding: 10px 0;
    }

    .logo img {
        height: 40px;
    }

    .header-time {
        display: none;
    }

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

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

    /* Mobile Navigation */
    .main-navigation {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
        padding: 10px 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1a0508;
        border-top: 1px solid rgba(196, 30, 58, 0.3);
    }

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

    .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(196, 30, 58, 0.1);
    }

    /* Notification Bar */
    .notification-content {
        font-size: 11px;
        gap: 30px;
    }

    /* Hero Section */
    .macaubet-hero {
        min-height: 450px;
        padding: 30px 12px;
    }

    .lantern-field {
        opacity: 0.6;
    }

    .lantern {
        width: 22px;
        height: 33px;
    }

    .lantern-3, .lantern-4, .lantern-5, .lantern-6 {
        display: none;
    }

    .fan-pattern {
        width: 100px;
        height: 100px;
        opacity: 0.3;
    }

    .dragon-decoration {
        display: none;
    }

    .firework {
        width: 4px;
        height: 4px;
    }

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

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

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

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

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

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

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

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

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

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

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

    /* Star Games */
    .star-games {
        padding: 40px 0;
    }

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

    .star-game-card {
        padding: 20px;
    }

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

    /* Game Grid */
    .game-grid-section {
        padding: 40px 0;
    }

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

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

    .node-lantern {
        width: 40px;
        height: 40px;
    }

    .node-lantern i {
        font-size: 16px;
    }

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

    /* Oriental Features */
    .oriental-features {
        padding: 40px 0;
    }

    .oriental-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .oriental-feature-card {
        padding: 20px 15px;
    }

    .fan-icon {
        width: 50px;
        height: 50px;
    }

    /* Stats */
    .oriental-stats {
        padding: 40px 0;
    }

    .oriental-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

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

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

    /* Promos */
    .oriental-promos {
        padding: 40px 0;
    }

    .oriental-promos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .oriental-promo-inner {
        padding: 20px;
    }

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

    .oriental-promo-inner h3 {
        font-size: 14px;
    }

    /* Footer CTA */
    .footer-cta-section {
        padding: 40px 0;
    }

    .footer-cta-inner h2 {
        font-size: 22px;
        letter-spacing: 1px;
    }

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

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

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

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

    /* News */
    .home-news-section {
        padding: 40px 0;
    }

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

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

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

    /* Footer */
    .site-footer {
        padding: 30px 0 15px;
    }

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

    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-col ul li {
        margin-bottom: 6px;
    }

    .license-icons {
        gap: 15px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .provider-tabs {
        gap: 5px;
    }

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

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

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

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

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

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

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

    .announcement-item {
        padding: 10px;
    }

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

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

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

/* === SMALL MOBILE (max-width: 480px) === */
@media (max-width: 480px) {

    /* Header */
    .logo img {
        height: 35px;
    }

    .btn-login {
        display: none;
    }

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

    /* Hero */
    .macaubet-hero {
        min-height: 380px;
        padding: 25px 10px;
    }

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

    .hero-tagline {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 12px;
        line-height: 1.6;
    }

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

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

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

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

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

    .section-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }

    /* Star Games */
    .star-games {
        padding: 30px 0;
    }

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

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

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

    .star-game-card p {
        font-size: 12px;
    }

    /* Game Grid */
    .game-grid-section {
        padding: 30px 0;
    }

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

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

    .node-lantern {
        width: 35px;
        height: 35px;
    }

    .node-lantern i {
        font-size: 14px;
    }

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

    /* Features */
    .oriental-features {
        padding: 30px 0;
    }

    .oriental-feature-card {
        padding: 15px 12px;
    }

    .oriental-feature-card h3 {
        font-size: 14px;
    }

    .oriental-feature-card p {
        font-size: 12px;
    }

    /* Stats */
    .oriental-stats {
        padding: 30px 0;
    }

    .oriental-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .oriental-stat-card {
        padding: 15px 8px;
    }

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

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

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

    /* Promos */
    .oriental-promos {
        padding: 30px 0;
    }

    .oriental-promo-inner {
        padding: 15px;
    }

    .oriental-promo-inner h3 {
        font-size: 13px;
    }

    .oriental-promo-inner p {
        font-size: 12px;
    }

    .btn-promo {
        padding: 8px 18px;
        font-size: 12px;
    }

    /* Footer CTA */
    .footer-cta-section {
        padding: 30px 0;
    }

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

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

    .cta-main-btn {
        font-size: 13px;
        padding: 10px 20px;
    }

    /* News */
    .home-news-section {
        padding: 30px 0;
    }

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

    .article-card-title {
        padding: 10px 10px 5px;
        font-size: 13px;
    }

    .article-card-meta {
        padding: 0 10px;
        font-size: 11px;
    }

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

    /* Footer */
    .site-footer {
        padding: 20px 0 10px;
    }

    .footer-brand-text {
        font-size: 12px;
    }

    .footer-col ul li a {
        font-size: 12px;
    }

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

    .license-icons {
        gap: 10px;
    }

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

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

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

    .sidebar-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

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

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

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

    .article-nav {
        flex-direction: column;
        gap: 10px;
    }

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

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

    .related-item-title {
        font-size: 12px;
    }

    /* Error Page */
    .error-page {
        padding: 50px 15px;
    }

    .error-code {
        font-size: 48px;
    }

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

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

    /* Announcement Modal */
    .announcement-content {
        padding: 15px;
    }

    .announcement-title {
        font-size: 14px;
        margin-bottom: 15px;
    }

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

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

    /* Pagination */
    .pagination {
        padding: 15px 0;
    }

    .pagination .page-numbers {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

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

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

    .page-content {
        font-size: 14px;
    }

    /* Category */
    .category-header {
        padding: 15px 0;
    }

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

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

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

    .hero-stats-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-stat {
        width: 45%;
    }

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

    .game-grid-row {
        grid-template-columns: 1fr 1fr;
    }

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

    .footer-18plus {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
}

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

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

    .floating-sidebar {
        top: auto;
        bottom: 10px;
        transform: none;
        flex-direction: row;
    }
}

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

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

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

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

    .notification-content {
        animation: none;
    }

    .lantern,
    .firework,
    .dragon-decoration,
    .fan-pattern {
        animation: none;
    }
}

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