/* ========================================
   PALMBET - Responsive Stylesheet
   Mobile-first responsive design
   ======================================== */

/* === Mobile Base (up to 768px) === */
@media (max-width: 768px) {

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Content Area */
    .content-area {
        flex-direction: column;
        padding: 15px 0;
        gap: 15px;
    }

    .main-content {
        width: 100%;
    }

    /* Section Title */
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .section-title i {
        font-size: 1.1rem;
    }

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

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

    .logo img {
        height: 35px;
    }

    .header-time {
        display: none;
    }

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

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 6px 12px;
        font-size: 0.72rem;
        letter-spacing: 0;
    }

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

    .mobile-menu-toggle {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 15px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        padding: 10px 0;
        border-top: 1px solid rgba(255, 109, 0, 0.2);
    }

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

    .nav-item {
        width: 100%;
    }

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

    .nav-link:hover {
        background: rgba(255, 109, 0, 0.15);
    }

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

    .notification-content span {
        font-size: 0.72rem;
        padding: 0 15px;
    }

    /* === Announcement Modal Mobile === */
    .announcement-content {
        padding: 20px 15px;
        max-width: 95%;
        border-radius: 15px;
    }

    .announcement-title {
        font-size: 1rem;
    }

    .announcement-header-icon i {
        font-size: 2.5rem;
    }

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

    .announcement-text {
        font-size: 0.78rem;
    }

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

    /* === Hero Mobile === */
    .palmbet-hero {
        padding: 40px 15px;
        min-height: 400px;
        margin: 10px 0;
    }

    .palm-device-frame {
        width: 120px;
        height: 200px;
        border-radius: 20px;
    }

    .glow-ring-1 {
        width: 120px;
        height: 120px;
    }

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

    .glow-ring-3 {
        width: 280px;
        height: 280px;
    }

    .glow-ring-4 {
        width: 360px;
        height: 360px;
    }

    .glow-ring-5 {
        width: 440px;
        height: 440px;
    }

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

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

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

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

    .hero-stat-number {
        font-size: 1.3rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }

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

    .btn-orange-primary,
    .btn-outline-orange {
        padding: 12px 30px;
        font-size: 0.9rem;
        width: 80%;
        text-align: center;
    }

    /* === Palm Star Games Mobile === */
    .palm-star-games {
        padding: 30px 0;
    }

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

    .palm-star-game-card {
        padding: 20px 12px;
    }

    .palm-star-game-icon i {
        font-size: 2rem;
    }

    .palm-star-game-card h3 {
        font-size: 0.95rem;
    }

    .palm-star-game-card p {
        font-size: 0.78rem;
    }

    .palm-star-game-players {
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    /* === Palm Grid Mobile === */
    .palm-grid-section {
        padding: 30px 0;
        margin: 15px 0;
    }

    .palm-grid-map {
        padding: 0 10px;
    }

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

    .palm-grid-node {
        padding: 18px 8px;
    }

    .palm-node-icon i {
        font-size: 1.4rem;
    }

    .palm-node-label {
        font-size: 0.75rem;
    }

    /* === Palm Features Mobile === */
    .palm-features {
        padding: 30px 0;
    }

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

    .palm-feature-card {
        padding: 20px 15px;
    }

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

    .palm-feature-icon i {
        font-size: 1.2rem;
    }

    .palm-feature-card h3 {
        font-size: 0.9rem;
    }

    .palm-feature-card p {
        font-size: 0.78rem;
    }

    /* === Palm Stats Mobile === */
    .palm-stats {
        padding: 40px 15px;
        margin: 20px 0;
    }

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

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

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    /* === Palm Promos Mobile === */
    .palm-promos {
        padding: 30px 0;
    }

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

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

    .palm-promo-inner h3 {
        font-size: 0.9rem;
    }

    .palm-promo-inner p {
        font-size: 0.8rem;
    }

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

    /* === Footer CTA Mobile === */
    .footer-cta-section {
        padding: 40px 15px;
        margin: 20px 0;
    }

    .footer-cta-inner h2 {
        font-size: 1.4rem;
    }

    .footer-cta-inner p {
        font-size: 0.88rem;
    }

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

    .cta-feature {
        font-size: 0.82rem;
    }

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

    /* === News Grid Mobile === */
    .home-news-section {
        padding: 30px 0;
    }

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

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

    .article-card-title span,
    .article-card-title a {
        font-size: 0.88rem;
    }

    .view-more-btn {
        font-size: 0.82rem;
        padding: 10px 25px;
    }

    /* === Article Grid Mobile === */
    .article-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* === Category Header Mobile === */
    .category-header {
        padding: 20px 0;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .category-desc {
        font-size: 0.88rem;
    }

    /* === Provider Tabs Mobile === */
    .provider-tabs {
        gap: 6px;
        margin-bottom: 20px;
    }

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

    /* === Breadcrumb Mobile === */
    .breadcrumb {
        font-size: 0.78rem;
        padding: 10px 0;
    }

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

    .article-title {
        font-size: 1.3rem;
    }

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

    .article-content {
        font-size: 0.92rem;
    }

    .article-tags {
        gap: 6px;
    }

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

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

    .article-nav-prev a,
    .article-nav-next a {
        font-size: 0.82rem;
    }

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

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

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

    .related-posts-title {
        font-size: 1rem;
    }

    /* === Pagination Mobile === */
    .pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

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

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

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

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

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

    .footer-col ul li a {
        font-size: 0.8rem;
    }

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

    .license-icons {
        gap: 15px;
    }

    .license-item i {
        font-size: 1.2rem;
    }

    .license-item span {
        font-size: 0.65rem;
    }

    .footer-copyright {
        font-size: 0.72rem;
    }

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

    .error-code {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.2rem;
    }

    .error-desc {
        font-size: 0.88rem;
    }

    .error-palm-device {
        width: 60px;
        height: 100px;
    }

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

    .page-title {
        font-size: 1.5rem;
    }

    .page-content {
        font-size: 0.92rem;
    }
}

/* === Tablet (769px to 1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Container */
    .container {
        padding: 0 20px;
    }

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

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 7px 14px;
        font-size: 0.78rem;
    }

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

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

    .hero-brand {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    /* Palm Star Games */
    .palm-star-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

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

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

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

    .stat-number {
        font-size: 2rem;
    }

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

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

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

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

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

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

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

/* === Small Desktop (1025px to 1200px) === */
@media (min-width: 1025px) and (max-width: 1200px) {

    .container {
        max-width: 1000px;
    }

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

    .palm-star-games-grid {
        gap: 18px;
    }

    .palm-features-grid {
        gap: 18px;
    }

    .palm-stats-grid {
        gap: 18px;
    }

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

/* === Large Desktop (1201px+) === */
@media (min-width: 1201px) {

    .container {
        max-width: 1200px;
    }

    .hero-brand {
        font-size: 4rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .palm-features-grid {
        gap: 25px;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* === Extra Small Mobile (up to 480px) === */
@media (max-width: 480px) {

    html {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    /* Header XS */
    .header-top {
        justify-content: center;
        text-align: center;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    .header-btn-group {
        width: 100%;
        justify-content: center;
    }

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

    /* Hero XS */
    .palmbet-hero {
        padding: 30px 10px;
        min-height: 350px;
    }

    .hero-brand {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 0.82rem;
    }

    .hero-description {
        font-size: 0.82rem;
    }

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

    .hero-stat-number {
        font-size: 1.1rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    .btn-orange-primary,
    .btn-outline-orange {
        padding: 10px 20px;
        font-size: 0.82rem;
        width: 90%;
    }

    /* Star Games XS */
    .palm-star-games-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .palm-star-game-card {
        padding: 15px 10px;
    }

    .palm-star-game-icon i {
        font-size: 1.6rem;
    }

    .palm-star-game-card h3 {
        font-size: 0.82rem;
    }

    .palm-star-game-card p {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .palm-star-game-rating i {
        font-size: 0.65rem;
    }

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

    .palm-grid-node {
        padding: 15px 5px;
    }

    .palm-node-icon i {
        font-size: 1.2rem;
    }

    .palm-node-label {
        font-size: 0.68rem;
    }

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

    .palm-feature-card {
        padding: 15px 10px;
    }

    .palm-feature-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }

    .palm-feature-icon i {
        font-size: 1rem;
    }

    .palm-feature-card h3 {
        font-size: 0.82rem;
    }

    .palm-feature-card p {
        font-size: 0.72rem;
    }

    /* Stats XS */
    .palm-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

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

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

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

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

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

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

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

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

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

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

    /* Footer XS */
    .footer-columns-grid {
        gap: 20px;
    }

    .footer-brand-text {
        font-size: 0.78rem;
    }

    .license-icons {
        gap: 10px;
    }

    .license-item i {
        font-size: 1rem;
    }

    /* Error XS */
    .error-code {
        font-size: 3rem;
    }

    .error-title {
        font-size: 1rem;
    }

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

    .announcement-title {
        font-size: 0.88rem;
    }

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

    .announcement-badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }

    .announcement-text {
        font-size: 0.72rem;
    }

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

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

    /* Category XS */
    .category-title {
        font-size: 1.2rem;
    }

    /* Single Article XS */
    .article-title {
        font-size: 1.1rem;
    }

    .article-content {
        font-size: 0.85rem;
    }

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

/* === Landscape Mobile (up to 768px width, landscape) === */
@media (max-width: 768px) and (orientation: landscape) {

    .palmbet-hero {
        min-height: 300px;
        padding: 25px 15px;
    }

    .hero-brand {
        font-size: 2rem;
    }

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

    .palm-device-frame {
        width: 100px;
        height: 160px;
    }

    .floating-sidebar {
        top: auto;
        bottom: 10px;
        transform: none;
        flex-direction: row;
        right: 50%;
        transform: translateX(50%);
    }

    .sidebar-btn {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .sidebar-label {
        display: none !important;
    }
}

/* === High DPI / Retina === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .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;
    }

    .palm-swipe-effect,
    .notification-content {
        animation: none !important;
    }

    .palm-device-frame,
    .cta-palm-device,
    .error-palm-device {
        animation: none !important;
    }

    .palm-glow-ring {
        animation: none !important;
    }
}

/* === Dark Mode Support === */
@media (prefers-color-scheme: dark) {
    :root {
        --palm-warm-bg: #121212;
        --palm-warm-card: #1E1E1E;
        --palm-warm-accent: #FFE0B2;
        --palm-text-dark: #E0E0E0;
        --palm-text-light: #B0B0B0;
        --palm-text-muted: #757575;
        --palm-border: #333333;
    }

    .palm-star-game-card,
    .palm-feature-card,
    .palm-promo-card,
    .article-card,
    .single-article,
    .page-article,
    .palm-grid-node,
    .related-item {
        background: #1E1E1E;
    }

    .provider-tab {
        background: #1E1E1E;
        color: #B0B0B0;
    }

    .pagination .page-numbers {
        background: #1E1E1E;
        color: #B0B0B0;
    }

    .article-tags span {
        background: #2A2A2A;
    }
}
