/* ============================================
   ONEHAND THEME - responsive.css (moban-126)
   One-Hand Operation Mobile-First Theme
   ============================================ */

/* === 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 */
    .onehand-hero {
        min-height: 500px;
    }

    .hero-brand {
        font-size: 48px;
        letter-spacing: 6px;
    }

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

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

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

    /* Thumb Zone */
    .hero-thumb-zone {
        width: 200px;
        height: 200px;
        opacity: 0.5;
    }

    .thumb-arc-ring {
        width: 180px;
        height: 180px;
    }

    .thumb-arc-ring.ring-2 {
        width: 140px;
        height: 140px;
    }

    .thumb-arc-ring.ring-3 {
        width: 100px;
        height: 100px;
    }

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

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

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

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

    /* Promos */
    .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);
    }

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

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

    /* Floating sidebar hidden on tablet+ */
    .floating-sidebar {
        display: none;
    }
}

/* === TABLET PORTRAIT (max-width: 768px) === */
@media (max-width: 768px) {
    body {
        padding-bottom: 75px;
    }

    .container {
        padding: 0 12px;
    }

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

    .logo img {
        height: 38px;
    }

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

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

    .btn-demo {
        display: none;
    }

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

    .main-navigation .container {
        justify-content: flex-start;
    }

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

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #111111;
        padding: 10px 0;
        border-top: 1px solid rgba(46, 125, 50, 0.2);
    }

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

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 14px;
        border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    }

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

    /* Hero */
    .onehand-hero {
        min-height: 450px;
        padding: 30px 20px;
        border-radius: 15px;
    }

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

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

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

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

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

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

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

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

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

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

    /* Quick Games */
    .quick-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

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

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

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

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

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

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

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

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

    .feature-card {
        padding: 25px 20px;
    }

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

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

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

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

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

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

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

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

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

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

    .promo-card p {
        font-size: 13px;
    }

    /* Bottom CTA */
    .bottom-cta-section {
        padding: 40px 20px;
        border-radius: 15px;
    }

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

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

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

    .cta-hand-icon {
        width: 60px;
        height: 60px;
    }

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

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

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

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

    .article-card-title {
        font-size: 15px;
        padding: 12px 12px 8px;
    }

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

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

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

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

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

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

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

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

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

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

    .provider-tabs {
        gap: 6px;
    }

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

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

    .error-hand-icon {
        width: 90px;
        height: 90px;
    }

    .error-hand-icon i {
        font-size: 44px;
    }

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

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

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

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

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

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

    .license-icons {
        gap: 20px;
    }

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

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

    /* Floating Sidebar hidden */
    .floating-sidebar {
        display: none;
    }

    /* Bottom Nav Bar */
    .bottom-nav-bar {
        padding: 6px 0;
    }

    .bottom-nav-item {
        font-size: 10px;
        min-width: 50px;
        padding: 4px 8px;
    }

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

    .bottom-nav-center i {
        font-size: 24px;
        width: 44px;
        height: 44px;
    }

    .bottom-nav-center {
        margin-top: -20px;
    }

    /* Notification bar */
    .notification-content {
        font-size: 12px;
        gap: 25px;
    }

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

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

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

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

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

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

    .article-nav-prev,
    .article-nav-next {
        text-align: center;
    }
}

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

    .container {
        padding: 0 10px;
    }

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

    .logo img {
        height: 32px;
    }

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

    /* Hero */
    .onehand-hero {
        min-height: 380px;
        padding: 25px 15px;
        border-radius: 12px;
        margin-bottom: 25px;
    }

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

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

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

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

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

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

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

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

    .btn-green-primary,
    .btn-outline-green {
        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;
    }

    /* Quick Games */
    .quick-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .quick-game-card {
        padding: 15px 10px;
        border-radius: 12px;
    }

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

    .quick-game-card h3 {
        font-size: 14px;
    }

    .quick-game-card p {
        font-size: 11px;
        display: none;
    }

    .quick-game-rating {
        margin-bottom: 6px;
    }

    .quick-game-players {
        font-size: 10px;
        padding: 3px 8px;
    }

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

    .game-grid-node {
        padding: 12px 8px;
        border-radius: 10px;
    }

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

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

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

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

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

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

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

    .stat-card {
        padding: 15px 8px;
        border-radius: 12px;
    }

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

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

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

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

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

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

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

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

    /* Bottom CTA */
    .bottom-cta-section {
        padding: 30px 15px;
    }

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

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

    .cta-hand-icon {
        width: 50px;
        height: 50px;
    }

    .cta-hand-icon i {
        font-size: 22px;
    }

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

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

    .article-card-title {
        font-size: 14px;
        min-height: 45px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .license-icons {
        gap: 15px;
    }

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

    /* Bottom Nav */
    .bottom-nav-bar {
        padding: 5px 0;
        box-shadow: 0 -3px 10px rgba(46, 125, 50, 0.15);
    }

    .bottom-nav-item {
        font-size: 9px;
        min-width: 45px;
        padding: 3px 5px;
    }

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

    .bottom-nav-center i {
        font-size: 20px;
        width: 38px;
        height: 38px;
    }

    .bottom-nav-center {
        margin-top: -18px;
    }

    .bottom-nav-center span {
        font-size: 9px;
    }

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

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

    /* Announcement Modal */
    .announcement-content {
        padding: 20px 15px;
        border-radius: 15px;
        max-height: 90vh;
    }

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

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

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

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

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

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

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

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

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

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

    .notification-content {
        font-size: 11px;
        gap: 20px;
    }

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

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

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

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

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

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

    .quick-games-grid {
        grid-template-columns: 1fr;
    }

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

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

    .bottom-nav-item span {
        display: none;
    }

    .bottom-nav-center span {
        display: block;
    }
}

/* === DESKTOP ENHANCEMENTS (min-width: 1025px) === */
@media (min-width: 1025px) {
    /* Bottom nav hidden on desktop */
    .bottom-nav-bar {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .floating-sidebar {
        display: flex;
    }

    .quick-game-card:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .game-grid-node:hover {
        transform: translateY(-8px) scale(1.03);
    }
}

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

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

    .container {
        max-width: 100%;
    }

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

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

/* === HIGH CONTRAST === */
@media (prefers-contrast: high) {
    .article-card,
    .quick-game-card,
    .feature-card,
    .stat-card,
    .promo-card {
        border-width: 2px;
        border-color: #4CAF50;
    }

    .nav-link {
        color: #fff;
    }

    .article-card-title,
    .article-card-title a {
        color: #fff;
    }
}

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

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

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

    .bottom-nav-bar {
        padding: 3px 0;
    }

    .bottom-nav-item {
        font-size: 9px;
    }

    .bottom-nav-item i {
        font-size: 14px;
    }

    .bottom-nav-center i {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    body {
        padding-bottom: 50px;
    }
}

/* === SAFE AREA FOR NOTCHED DEVICES === */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav-bar {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 768px) {
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .bottom-nav-bar {
            padding-bottom: calc(6px + env(safe-area-inset-bottom));
        }

        body {
            padding-bottom: calc(75px + env(safe-area-inset-bottom));
        }
    }
}

@media (max-width: 480px) {
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .bottom-nav-bar {
            padding-bottom: calc(5px + env(safe-area-inset-bottom));
        }

        body {
            padding-bottom: calc(80px + env(safe-area-inset-bottom));
        }
    }
}
