/* ============================================
   STUDWIN THEME - responsive.css (moban-101)
   Stud Poker Theme Responsive Styles
   ============================================ */

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

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

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

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

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

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

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

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

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

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

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

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

    /* Content Area */
    .content-area {
        gap: 20px;
    }

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

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

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

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
        padding: 12px;
    }

    .main-navigation .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0d0d0d;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        border-top: 1px solid rgba(198, 40, 40, 0.3);
        max-height: 70vh;
        overflow-y: auto;
    }

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

    .nav-link {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 14px;
    }

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

    .logo img {
        height: 36px;
    }

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

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

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

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

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

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

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

    .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 28px;
        font-size: 14px;
        width: 80%;
        text-align: center;
    }

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

    /* Featured Games */
    .stud-featured-games-grid {
        grid-template-columns: 1fr;
    }

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

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

    .stud-card-node {
        padding: 20px 10px;
    }

    .stud-card-face {
        font-size: 26px;
    }

    .stud-card-label {
        font-size: 12px;
    }

    /* Features */
    .stud-features-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

    /* Promos */
    .stud-promos-grid {
        grid-template-columns: 1fr;
    }

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

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

    .home-news-placeholder {
        grid-template-columns: 1fr;
    }

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

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

    .footer-col {
        text-align: center;
    }

    .footer-brand-logo {
        display: flex;
        justify-content: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .footer-col li {
        margin-bottom: 0;
    }

    .license-icons {
        gap: 20px;
    }

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

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

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

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

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

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

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

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

    .provider-tabs {
        gap: 6px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* === MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

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

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

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

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

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

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

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

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

    /* Falling Cards */
    .falling-card {
        width: 25px;
        height: 40px;
    }

    /* Card Grid */
    .stud-card-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stud-card-node {
        padding: 15px 8px;
    }

    .stud-card-face {
        font-size: 22px;
    }

    .stud-card-label {
        font-size: 11px;
    }

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

    .stud-stat-card {
        padding: 20px 12px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

    .error-card {
        width: 60px;
        height: 90px;
    }

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

    /* Footer CTA */
    .footer-cta-inner h2 {
        font-size: 20px;
        letter-spacing: 2px;
    }

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

    .cta-playing-card {
        width: 40px;
        height: 56px;
    }

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

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

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

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

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

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

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

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

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

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

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

    /* Promo */
    .promo-icon {
        font-size: 28px;
    }

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

    /* Feature */
    .stud-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Header Buttons */
    .header-btn-group {
        gap: 6px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .container {
        max-width: 100%;
    }

    .single-article {
        background: #fff;
        border: none;
        padding: 0;
    }

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

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

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

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

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

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

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

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

    .falling-card {
        animation: none !important;
    }

    .notification-content {
        animation: none !important;
    }
}

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