/* ============================================
   PHOENIX88 THEME - responsive.css (moban-61)
   Phoenix Totem Responsive Styles
   Breakpoints: 1200px, 992px, 768px, 576px, 480px
   ============================================ */

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

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

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

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

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

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

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

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

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

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

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

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

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

/* === TABLET PORTRAIT (max-width: 992px) === */
@media (max-width: 992px) {
    .fire-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .phoenix-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

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

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

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

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

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

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

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

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

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

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

    .phoenix-hero {
        min-height: 500px;
        padding: 60px 15px;
    }

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

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

    .content-area {
        flex-direction: column;
    }

    .floating-sidebar {
        display: none;
    }

    .header-time {
        display: none;
    }

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

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(13, 0, 0, 0.98);
        padding: 10px 0;
    }

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

    .nav-link {
        padding: 12px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(220, 38, 38, 0.08);
    }

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

    .main-navigation .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .mobile-menu-toggle {
        margin-left: auto;
        padding: 10px 5px;
    }

    .single-article {
        padding: 25px;
    }

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

    .page-article {
        padding: 25px;
    }

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

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

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

    .container {
        padding: 0 15px;
    }

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

    .logo img {
        height: 40px;
    }

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

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

    /* Hero */
    .phoenix-hero {
        min-height: 450px;
        padding: 50px 15px;
    }

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

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

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

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

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

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

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

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

    .btn-fire-primary, .btn-outline-fire {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 12px 30px;
        font-size: 16px;
    }

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

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

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

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

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

    .fire-game-card h3 {
        font-size: 18px;
    }

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

    /* Phoenix Grid */
    .phoenix-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .phoenix-grid-item {
        padding: 18px 10px;
    }

    .grid-item-icon i {
        font-size: 22px;
    }

    .grid-item-label {
        font-size: 14px;
    }

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

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

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

    .flame-icon::after {
        width: 25px;
        height: 25px;
    }

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

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

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

    .phoenix-stat-card {
        padding: 25px 10px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

    .cta-main-btn {
        font-size: 16px;
        padding: 12px 35px;
    }

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

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

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

    .license-icons {
        gap: 15px;
    }

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

    .single-article {
        padding: 20px;
    }

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

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

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

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

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

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

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

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

    .provider-tabs {
        gap: 6px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /* Hero */
    .phoenix-hero {
        min-height: 400px;
        padding: 40px 10px;
    }

    .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: 12px;
        flex-wrap: wrap;
    }

    .hero-stat {
        min-width: 70px;
    }

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

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

    /* Fire Games */
    .fire-games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    /* Phoenix Grid */
    .phoenix-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .phoenix-grid-item {
        padding: 15px 8px;
    }

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

    .grid-item-label {
        font-size: 12px;
    }

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

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

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

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

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

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

    .section-title::after {
        width: 60px;
    }

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

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

    /* Header */
    .btn-login {
        display: none;
    }

    .btn-demo {
        display: none;
    }

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

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

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

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

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

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

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

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

    .article-tags {
        gap: 6px;
    }

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

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

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

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

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

    .category-header {
        padding: 20px 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    .announcement-content {
        padding: 20px;
    }

    .announcement-list {
        gap: 8px;
    }

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

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

/* === MOBILE EXTRA SMALL (max-width: 480px) === */
@media (max-width: 480px) {
    /* Hero */
    .phoenix-hero {
        min-height: 350px;
        padding: 30px 8px;
    }

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

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

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

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

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

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

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

    .btn-fire-primary, .btn-outline-fire {
        font-size: 14px;
        padding: 10px 20px;
    }

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

    .phoenix-grid-item {
        padding: 12px 6px;
    }

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

    .grid-item-label {
        font-size: 11px;
    }

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

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

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

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

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

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

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

    .cta-phoenix-wing {
        width: 60px;
        height: 30px;
    }

    /* Cards */
    .fire-game-card h3 {
        font-size: 16px;
    }

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

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

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

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

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

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

    .article-card-more {
        margin: 0 12px 12px;
        font-size: 11px;
    }

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

    .error-phoenix-flame {
        width: 80px;
        height: 80px;
    }

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

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

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

    /* DMCA + Disclaimer */
    .footer-disclaimer {
        font-size: 11px !important;
        padding: 15px 10px !important;
    }
}

/* === MOBILE NAVIGATION ENHANCEMENT === */
@media (max-width: 992px) {
    .nav-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-menu.active {
        max-height: 600px;
    }
}

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

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

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

    .footer-cta-section {
        padding: 40px 15px;
    }
}

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

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

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

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

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

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

    html {
        scroll-behavior: auto;
    }
}

/* === DARK MODE SUPPORT (already dark by default) === */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as-is since PHOENIX88 is inherently dark */
    body {
        background: #0D0000;
        color: #F5E6D3;
    }
}

/* === FOCUS STYLES FOR ACCESSIBILITY === */
@media (prefers-reduced-motion: no-preference) {
    .btn-fire-primary:focus,
    .btn-outline-fire:focus,
    .btn-promo:focus,
    .btn-login:focus,
    .btn-register:focus,
    .btn-demo:focus {
        outline: 2px solid #FBBF24;
        outline-offset: 2px;
    }

    .nav-link:focus {
        outline: 1px solid #FBBF24;
        outline-offset: -1px;
    }

    .sidebar-btn:focus {
        outline: 2px solid #FBBF24;
        outline-offset: 2px;
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.text-fire {
    background: linear-gradient(135deg, #DC2626, #F97316, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-fire-gradient {
    background: linear-gradient(135deg, #DC2626, #F97316, #FBBF24);
}

.border-fire {
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.shadow-fire {
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.2);
}

/* === LOADING ANIMATION === */
@keyframes phoenixLoadSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(220, 38, 38, 0.2);
    border-top: 3px solid #F97316;
    border-radius: 50%;
    animation: phoenixLoadSpin 1s linear infinite;
    margin: 20px auto;
}

/* === SMOOTH TRANSITIONS FOR INTERACTIVE ELEMENTS === */
.fire-game-card,
.phoenix-grid-item,
.phoenix-feature-card,
.phoenix-stat-card,
.phoenix-promo-card,
.article-card,
.sidebar-btn,
.btn-fire-primary,
.btn-outline-fire,
.btn-promo,
.nav-link {
    will-change: transform;
}
