/* ============================================
   LOTTOVIP THEME - responsive.css (moban-117)
   Premium VIP Lottery Theme - Responsive Styles
   ============================================ */

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

    .vip-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .vip-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .vip-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .vip-promos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

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

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

    .floating-sidebar {
        right: 10px;
    }

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

    .sidebar-btn i {
        font-size: 16px;
    }
}

/* === TABLET PORTRAIT (max-width: 992px) === */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

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

    .header-time {
        display: none;
    }

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

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

    /* Navigation */
    .mobile-menu-toggle {
        display: block;
        margin: 8px 0;
    }

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

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

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.08);
        border-left: 3px solid transparent;
    }

    .nav-link:hover {
        border-bottom-color: rgba(255, 215, 0, 0.08);
        border-left-color: #FFD700;
    }

    /* Hero */
    .lottovip-hero {
        padding: 50px 20px;
    }

    .hero-brand {
        font-size: 38px;
        letter-spacing: 4px;
    }

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

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

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

    /* VIP Games */
    .vip-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

    /* Lottery Grid */
    .lottery-grid-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    /* Features */
    .vip-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

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

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

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

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

    /* Content */
    .content-area {
        flex-direction: column;
    }

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

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

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

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

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

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

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

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

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

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

    /* CTA Section */
    .footer-cta-section {
        padding: 40px 20px;
    }

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

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

    .container {
        padding: 0 15px;
    }

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

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

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

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

    .notification-content span {
        font-size: 12px;
    }

    /* Hero */
    .lottovip-hero {
        padding: 40px 15px;
        border-radius: 12px;
    }

    .crown-inner {
        width: 80px;
        height: 80px;
    }

    .crown-inner i {
        font-size: 35px;
    }

    .crown-glow-ring {
        width: 110px;
        height: 110px;
    }

    .crown-glow-ring.ring-2 {
        width: 140px;
        height: 140px;
    }

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

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

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

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

    .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: 13px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* VIP Games */
    .vip-games {
        padding: 35px 0;
    }

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

    .vip-card-icon {
        width: 55px;
        height: 55px;
    }

    .vip-card-icon i {
        font-size: 22px;
    }

    .vip-game-card h3 {
        font-size: 15px;
    }

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

    /* Lottery Grid */
    .lottery-grid-section {
        padding: 35px 0;
    }

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

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

    .lottery-node-icon {
        width: 38px;
        height: 38px;
    }

    .lottery-node-icon i {
        font-size: 15px;
    }

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

    /* Features */
    .vip-features {
        padding: 35px 0;
    }

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

    .vip-feature-card {
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .vip-feature-icon {
        width: 55px;
        height: 55px;
    }

    .vip-feature-icon i {
        font-size: 22px;
    }

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

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

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

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

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

    /* Promos */
    .vip-promos {
        padding: 35px 0;
    }

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

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

    .vip-promo-inner h3 {
        font-size: 15px;
    }

    /* CTA Section */
    .footer-cta-section {
        padding: 35px 15px;
    }

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

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

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

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

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

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

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

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

    .provider-tabs {
        gap: 6px;
    }

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

    /* 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: 20px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    .license-icons {
        gap: 15px;
    }

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

    /* Sidebar */
    .floating-sidebar {
        position: fixed;
        bottom: 10px;
        top: auto;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(0);
        flex-direction: row;
        gap: 8px;
    }

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

    .sidebar-btn i {
        font-size: 16px;
    }

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

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

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

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

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

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

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

    /* View More Button */
    .view-more-btn {
        padding: 10px 25px;
        font-size: 12px;
    }
}

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

    .container {
        padding: 0 12px;
    }

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

    .logo img {
        height: 35px;
    }

    .btn-login {
        display: none;
    }

    .btn-demo {
        display: none;
    }

    .btn-register {
        padding: 6px 16px;
        font-size: 12px;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        padding: 6px 10px;
        font-size: 18px;
    }

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

    /* Hero */
    .lottovip-hero {
        padding: 30px 12px;
    }

    .crown-inner {
        width: 65px;
        height: 65px;
    }

    .crown-inner i {
        font-size: 28px;
    }

    .crown-glow-ring {
        width: 90px;
        height: 90px;
    }

    .crown-glow-ring.ring-2 {
        width: 115px;
        height: 115px;
    }

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

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

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

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

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

    .hero-stat {
        width: calc(50% - 8px);
    }

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

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

    .btn-gold-primary,
    .btn-outline-gold {
        padding: 10px 20px;
        font-size: 12px;
        max-width: 100%;
    }

    /* VIP Games */
    .vip-games-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vip-game-card {
        padding: 20px 15px;
    }

    .vip-card-icon {
        width: 50px;
        height: 50px;
    }

    .vip-card-icon i {
        font-size: 20px;
    }

    /* Lottery Grid */
    .lottery-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .lottery-node-icon {
        width: 32px;
        height: 32px;
    }

    .lottery-node-icon i {
        font-size: 13px;
    }

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

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

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

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

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

    /* Promos */
    .vip-promo-inner h3 {
        font-size: 14px;
    }

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

    .btn-promo {
        padding: 8px 20px;
        font-size: 11px;
    }

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

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

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

    .article-card-title {
        font-size: 14px;
        padding: 12px 12px 6px;
    }

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

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

    /* Article */
    .single-article {
        padding: 15px 12px;
        border-radius: 12px;
    }

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

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

    .article-content {
        font-size: 13px;
        line-height: 1.7;
    }

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

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

    .related-item-title {
        font-size: 11px;
        padding: 6px;
    }

    .related-posts-title {
        font-size: 18px;
    }

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

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

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

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

    .footer-social-links {
        gap: 8px;
    }

    .footer-social-links a {
        width: 32px;
        height: 32px;
    }

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

    /* Sidebar */
    .floating-sidebar {
        bottom: 8px;
        gap: 6px;
    }

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

    .sidebar-btn i {
        font-size: 14px;
    }

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

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

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

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

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

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

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

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

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

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

    .provider-tabs {
        gap: 5px;
    }

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

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

    /* View More */
    .view-more-btn {
        padding: 8px 20px;
        font-size: 11px;
    }

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

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

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

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

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

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

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

    .floating-sidebar {
        gap: 4px;
    }

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

    .sidebar-btn i {
        font-size: 13px;
    }

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

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

/* === LANDSCAPE ORIENTATION FIXES === */
@media (max-height: 500px) and (orientation: landscape) {
    .lottovip-hero {
        padding: 30px 20px;
    }

    .crown-emblem {
        margin-bottom: 15px;
    }

    .crown-inner {
        width: 60px;
        height: 60px;
    }

    .crown-inner i {
        font-size: 25px;
    }

    .floating-sidebar {
        flex-direction: column;
        right: 5px;
        gap: 6px;
    }

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

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

/* === PRINT STYLES === */
@media print {
    .site-header,
    .main-navigation,
    .notification-bar,
    .floating-sidebar,
    .announcement-modal,
    .site-footer,
    .footer-cta-section,
    .btn-gold-primary,
    .btn-outline-gold,
    .btn-register,
    .btn-login,
    .btn-demo {
        display: none !important;
    }

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

    .single-article {
        background: #fff;
        border: 1px solid #ccc;
    }

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

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

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

    .footer-brand-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

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

    .vip-particle,
    .luxe-shine-sweep,
    .notification-content {
        animation: none !important;
    }
}

/* === DARK MODE PREFERENCE (already dark by default) === */
@media (prefers-color-scheme: light) {
    body {
        background: #1A1A1A;
        color: #E8E0F0;
    }
}
