/* ============================================
   LONDONWIN THEME - responsive.css (moban-75)
   British Royal Casino Theme - Responsive Styles
   Breakpoints: 1024px, 768px, 480px
   ============================================ */

/* === TABLET LANDSCAPE (max-width: 1024px) === */
@media (max-width: 1024px) {

    /* Container */
    .container {
        padding: 0 20px;
        max-width: 100%;
    }

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

    .header-time {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

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

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

    /* Navigation */
    .nav-menu {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

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

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

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

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

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

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

    .big-ben-silhouette {
        right: 20px;
        height: 200px;
        opacity: 0.1;
    }

    .royal-crown {
        left: 20px;
        width: 90px;
        height: 75px;
        opacity: 0.15;
    }

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

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

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

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

    /* Royal Grid Map */
    .royal-grid-row {
        gap: 10px;
    }

    .royal-grid-node {
        min-width: 100px;
        padding: 15px 10px;
    }

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

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

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

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

    .crown-icon-lg {
        width: 50px;
        height: 50px;
    }

    .crown-icon-lg::after {
        font-size: 22px;
    }

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

    .royal-stat-card {
        padding: 25px 15px;
    }

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

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

    /* Royal Promotions */
    .royal-promos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .royal-promo-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

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

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

    /* Footer CTA */
    .footer-cta-section {
        padding: 40px 20px;
        border-radius: 12px;
    }

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

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

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

    .home-news-grid .article-card:nth-child(3) {
        display: none;
    }

    .home-news-placeholder .article-card:nth-child(3) {
        display: none;
    }

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

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

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

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

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

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

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

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

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

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

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

    .footer-col:first-child {
        grid-column: span 2;
    }

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

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

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

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

    .provider-tabs {
        gap: 6px;
    }

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

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

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

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

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

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

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

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

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

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

/* === TABLET PORTRAIT / LARGE MOBILE (max-width: 768px) === */
@media (max-width: 768px) {

    /* Overflow fix */
    html, body {
        overflow-x: hidden;
    }

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

    /* Header */
    .site-header {
        position: sticky;
    }

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

    .logo img {
        height: 40px;
    }

    .header-time {
        font-size: 11px;
        padding: 4px 10px;
    }

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

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

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

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #0d1117, #111820);
        border-top: 1px solid rgba(183, 28, 28, 0.3);
        z-index: 999;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

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

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

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

    .nav-link:hover {
        background: rgba(183, 28, 28, 0.08);
    }

    .nav-item {
        width: 100%;
    }

    /* Tap targets */
    .nav-link,
    .sidebar-btn,
    .btn-login,
    .btn-register,
    .btn-demo,
    .btn-royal-primary,
    .btn-outline-royal,
    .btn-promo,
    .view-more-btn,
    .announcement-cta,
    .provider-tab,
    .pagination .page-numbers {
        min-height: 44px;
        min-width: 44px;
    }

    /* Hero */
    .londonwin-hero {
        min-height: 400px;
        border-radius: 10px;
        margin: 15px 0;
    }

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

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

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

    .hero-description {
        font-size: 13px;
        padding: 0 10px;
    }

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

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

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

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

    .btn-royal-primary,
    .btn-outline-royal {
        padding: 12px 30px;
        font-size: 14px;
        width: 80%;
        max-width: 300px;
        text-align: center;
    }

    .big-ben-silhouette {
        display: none;
    }

    .royal-crown {
        display: none;
    }

    .union-jack-accent {
        width: 150px;
        height: 150px;
        opacity: 0.05;
    }

    /* Royal Games */
    .royal-games {
        padding: 35px 0;
    }

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

    .royal-game-card {
        padding: 20px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .royal-game-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

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

    .royal-game-rating {
        margin-bottom: 0;
        margin-left: auto;
    }

    .royal-game-card h3 {
        width: 100%;
        font-size: 16px;
        margin-bottom: 5px;
    }

    .royal-game-card p {
        width: 100%;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .royal-game-players {
        width: 100%;
    }

    /* Royal Grid */
    .royal-grid {
        padding: 35px 0;
    }

    .royal-grid-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .royal-grid-node {
        min-width: calc(50% - 8px);
        flex: 0 0 calc(50% - 8px);
        padding: 15px 8px;
    }

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

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

    /* Palace Features */
    .palace-features {
        padding: 35px 0;
    }

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

    .palace-feature-card {
        padding: 20px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 15px;
        text-align: left;
    }

    .palace-feature-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .crown-icon-lg {
        width: 44px;
        height: 44px;
    }

    .crown-icon-lg::after {
        font-size: 20px;
    }

    .palace-feature-card h3 {
        flex: 1;
        font-size: 15px;
        margin-bottom: 0;
    }

    .palace-feature-card p {
        width: 100%;
        font-size: 13px;
    }

    /* Royal Stats */
    .royal-stats {
        padding: 35px 0;
    }

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

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

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

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

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

    /* Royal Promotions */
    .royal-promos {
        padding: 35px 0;
    }

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

    .royal-promo-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

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

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

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

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

    /* Footer CTA */
    .footer-cta-section {
        padding: 35px 15px;
        border-radius: 10px;
        margin: 35px 0;
    }

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

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

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

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

    .cta-crown-base {
        width: 60px;
    }

    .cta-crown-top {
        width: 45px;
    }

    /* News */
    .home-news-section {
        padding: 35px 0;
    }

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

    .home-news-grid .article-card:nth-child(3),
    .home-news-placeholder .article-card:nth-child(3) {
        display: block;
    }

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

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

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

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

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

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

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

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

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

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

    .provider-tabs {
        gap: 5px;
    }

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

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

    .article-card {
        border-radius: 10px;
    }

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

    .article-card-more {
        padding: 6px 12px 12px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .footer-col:first-child {
        grid-column: auto;
    }

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

    .license-icons {
        gap: 15px;
    }

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

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

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

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

    .sidebar-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

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

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

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

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

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

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

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

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

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

/* === MOBILE SMALL (max-width: 480px) === */
@media (max-width: 480px) {

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

    /* Safe area for iOS */
    .site-header {
        padding-top: env(safe-area-inset-top);
    }

    .site-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .floating-sidebar {
        bottom: calc(10px + env(safe-area-inset-bottom));
        top: auto;
        transform: none;
    }

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

    .logo img {
        height: 35px;
    }

    .header-time {
        display: none;
    }

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

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

    /* Hero */
    .londonwin-hero {
        min-height: 350px;
        border-radius: 8px;
        margin: 10px 0;
    }

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

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

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

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

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

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

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

    .btn-royal-primary,
    .btn-outline-royal {
        padding: 12px 24px;
        font-size: 13px;
        width: 90%;
    }

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

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

    /* Royal Games */
    .royal-game-card h3 {
        font-size: 15px;
    }

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

    /* Royal Grid */
    .royal-grid-node {
        min-width: calc(50% - 6px);
        flex: 0 0 calc(50% - 6px);
        padding: 12px 6px;
    }

    .node-crown i {
        font-size: 16px;
    }

    .node-label {
        font-size: 9px;
    }

    /* Palace Features */
    .palace-feature-card h3 {
        font-size: 14px;
    }

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

    /* Royal Stats */
    .royal-stat-card {
        padding: 15px 10px;
    }

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

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

    /* Royal Promotions */
    .royal-promo-inner h3 {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .royal-promo-inner p {
        font-size: 11px;
    }

    .btn-promo {
        padding: 10px 24px;
        font-size: 12px;
    }

    /* Footer CTA */
    .footer-cta-section {
        padding: 25px 12px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .license-icons {
        gap: 10px;
    }

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

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

    /* Floating Sidebar - bottom bar on mobile */
    .floating-sidebar {
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        background: linear-gradient(180deg, #080b12, #060910);
        border-top: 2px solid #B71C1C;
        padding: 8px 0;
        gap: 12px;
        z-index: 1000;
    }

    .sidebar-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        font-size: 16px;
        box-shadow: none;
    }

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

    .sidebar-label {
        display: none;
    }

    /* Add padding to body for fixed sidebar bar */
    body {
        padding-bottom: 65px;
    }

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

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

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

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

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

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

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

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

    /* Announcement Modal */
    .announcement-content {
        padding: 15px;
        border-radius: 12px;
    }

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

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

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

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

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

    .announcement-cta {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* === 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;
    }

    .notification-content {
        animation: none;
    }

    .royal-crown {
        animation: none;
    }

    .node-crown i {
        animation: none;
    }

    .royal-stat-card {
        animation: none;
    }

    .btn-royal-primary {
        animation: none;
    }

    .clock-hour,
    .clock-minute {
        animation: none;
    }
}

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

    body {
        background: #FFFFFF;
        color: #000000;
    }

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