/* ============================================
   SAIGON88 THEME - responsive.css (moban-190)
   Saigon Street Motorcycle Style - Responsive
   ============================================ */

/* === TABLET LANDSCAPE (max-width: 1024px) === */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 10px;
    }

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

    .floating-sidebar {
        position: fixed;
        right: 10px;
        top: auto;
        bottom: 80px;
        transform: none;
        flex-direction: row;
        gap: 6px;
    }

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

    .sidebar-btn[data-tooltip]:hover::after {
        display: none;
    }

    /* 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: 6px 12px;
        font-size: 12px;
    }

    /* Navigation */
    .mobile-menu-toggle {
        display: block;
    }

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

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

    .nav-link {
        padding: 10px 15px;
        font-size: 13px;
        border-bottom: 1px solid rgba(230, 81, 0, 0.1);
    }

    .has-dropdown .sub-menu {
        position: static;
        border: none;
        border-radius: 0;
        background: rgba(230, 81, 0, 0.05);
    }

    .sub-menu .nav-link {
        padding-left: 30px;
    }

    /* Hero */
    .saigon-hero {
        min-height: 400px;
        margin-bottom: 30px;
    }

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

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

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

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

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

    /* Grids */
    .street-star-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

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

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

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

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

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

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

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

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

    .license-icons {
        gap: 15px;
    }

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

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

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

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

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

    /* Error page */
    .error-code {
        font-size: 90px;
    }

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

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

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

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

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

/* === TABLET PORTRAIT (max-width: 768px) === */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        max-width: 100%;
        padding: 0 12px;
    }

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

    .logo {
        order: 1;
    }

    .header-btn-group {
        order: 2;
        margin-left: auto;
    }

    .header-time {
        display: none;
    }

    .btn-login {
        display: none;
    }

    .btn-demo {
        display: none;
    }

    /* Notification */
    .notification-content span {
        font-size: 12px;
        padding: 0 30px;
    }

    /* Hero */
    .saigon-hero {
        min-height: 350px;
        border-radius: 10px;
    }

    .hero-inner-content {
        padding: 30px 15px;
    }

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

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

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

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

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

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

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

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

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

    /* Grids */
    .street-star-games-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .street-star-game-card {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        padding: 15px;
    }

    .street-star-game-icon {
        margin-bottom: 0;
    }

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

    .street-star-game-rating {
        margin-bottom: 5px;
    }

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

    .pho-grid-node {
        padding: 15px 10px;
    }

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

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

    .street-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .street-feature-card {
        padding: 25px 20px;
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .street-feature-icon {
        margin: 0;
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

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

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

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

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

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

    .street-promos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .street-promo-inner {
        padding: 20px 15px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .license-icons {
        gap: 12px;
    }

    .license-item {
        font-size: 12px;
    }

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

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

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

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

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

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

    .cta-scooter-icon i {
        font-size: 40px;
    }

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

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

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

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

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

    .article-content h2 {
        font-size: 20px;
    }

    .article-content h3 {
        font-size: 16px;
    }

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

    .article-nav-next {
        text-align: left;
    }

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

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

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

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

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

    .provider-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .provider-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /* Hero */
    .saigon-hero {
        min-height: 300px;
        border-radius: 8px;
    }

    .hero-inner-content {
        padding: 25px 10px;
    }

    .hero-brand {
        font-size: 28px;
        letter-spacing: 1px;
    }

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

    .hero-divider-line {
        width: 50px;
        height: 2px;
    }

    .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: 11px;
    }

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

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

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

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

    /* Scooter lights */
    .scooter-light {
        display: none;
    }

    .scooter-zoom-element {
        display: none;
    }

    .neon-sign-effect {
        display: none;
    }

    /* Street star games */
    .street-star-game-card {
        padding: 12px;
    }

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

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

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

    .street-star-game-players {
        font-size: 11px;
    }

    /* Pho grid */
    .pho-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .pho-grid-node {
        padding: 12px 8px;
    }

    .pho-node-icon i {
        font-size: 18px;
    }

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

    /* Features */
    .street-feature-card {
        padding: 20px 15px;
    }

    .street-feature-icon {
        width: 45px;
        height: 45px;
    }

    .street-feature-icon i {
        font-size: 18px;
    }

    .street-feature-card h3 {
        font-size: 15px;
    }

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

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

    .saigon-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 5px;
    }

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

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

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

    .stat-street-decoration i {
        font-size: 16px;
    }

    /* Promos */
    .street-promo-inner {
        padding: 15px 12px;
    }

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

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

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

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

    /* Article cards */
    .article-card-thumb {
        height: 120px;
    }

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

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

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

    .article-card-more {
        padding: 8px 10px;
        font-size: 12px;
    }

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

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

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

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

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

    .footer-brand-logo img {
        height: 35px;
    }

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

    .footer-license-bar h4 {
        font-size: 13px;
    }

    .license-icons {
        gap: 8px;
    }

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

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

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

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

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

    .cta-feature {
        font-size: 12px;
    }

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

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

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

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

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

    .article-content blockquote {
        padding: 10px 15px;
        font-size: 13px;
    }

    .article-tags {
        gap: 5px;
    }

    .article-tags span {
        padding: 3px 8px;
        font-size: 11px;
    }

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

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

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

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

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

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

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

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

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

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

    .announcement-list {
        gap: 6px;
    }

    .announcement-item {
        padding: 8px 10px;
    }

    .announcement-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

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

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

    .announcement-cta {
        padding: 8px 25px;
        font-size: 13px;
    }

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

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

    /* Breadcrumb */
    .breadcrumb {
        font-size: 11px;
        gap: 5px;
    }

    /* Category */
    .category-header {
        padding: 12px;
        border-radius: 10px;
    }

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

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

    /* Notification bar */
    .notification-bar {
        padding: 6px 0;
    }

    .notification-content span {
        font-size: 11px;
        padding: 0 20px;
    }

    /* Content area padding */
    .content-area {
        padding: 15px 0;
    }

    /* Floating sidebar - bottom bar */
    .floating-sidebar {
        bottom: 10px;
        right: 5px;
        gap: 4px;
    }

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

    /* No posts */
    .no-posts {
        padding: 40px 15px;
    }

    /* Tables in articles */
    .article-content table {
        display: block;
        overflow-x: auto;
    }

    .article-content table th,
    .article-content table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

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

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

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

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

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

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

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

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

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

    .license-icons {
        flex-direction: column;
        align-items: center;
    }

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

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

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

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

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

    .saigon-hero {
        min-height: 600px;
    }

    .street-star-games-grid {
        gap: 25px;
    }

    .street-feature-card {
        padding: 35px 30px;
    }

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

/* === ULTRAWIDE (min-width: 1920px) === */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

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

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

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

    .content-area {
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }
}

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

    .saigon-neon-text {
        animation: none;
        text-shadow: 0 0 5px #E65100, 0 0 10px #E65100;
    }

    .notification-content {
        animation: none;
    }

    .scooter-zoom-element {
        animation: none;
        display: none;
    }

    .scooter-light {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* === DARK MODE OVERRIDE (system preference) === */
@media (prefers-color-scheme: light) {
    /* Keep dark theme regardless of system preference */
    body {
        background: #1A1A1A;
        color: #E8E8E8;
    }
}

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

    .hero-inner-content {
        padding: 20px 15px;
    }

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

    .hero-description {
        display: none;
    }

    .hero-stats-row {
        display: none;
    }

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

    .error-page {
        padding: 30px 15px;
    }

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

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

    .article-card-thumb img,
    .related-item-thumb img {
        image-rendering: -webkit-optimize-contrast;
    }
}
