/* ==========================================================================
   ROYAL.WIN - Master Stylesheet (Perfect Desktop & Mobile Backgrounds)
   Theme: Luxury Dark Gold Casino & Entertainment
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #0b0e14;
    --bg-secondary: #131722;
    --bg-header: #07080c;
    --bg-card: #1c2230;
    --bg-card-hover: #262e40;
    --primary-gold: #f3c242;
    --primary-gold-light: #ffe596;
    --primary-gold-dark: #b8860b;
    --gold-gradient: linear-gradient(135deg, #ffe596 0%, #f3c242 50%, #b8860b 100%);
    --gold-button-gradient: linear-gradient(180deg, #ffe083 0%, #e6a817 50%, #b87a00 100%);
    --accent-red: #e74c3c;
    --text-white: #ffffff;
    --text-muted: #9aa4b2;
    --border-gold: rgba(243, 194, 66, 0.35);
    --border-dark: rgba(255, 255, 255, 0.08);
    --shadow-gold: 0 0 20px rgba(243, 194, 66, 0.4);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-fast: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #2a3447;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold-dark);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */

.top-bar {
    background: #040508;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.badge-live {
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.top-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.top-link:hover {
    color: var(--primary-gold);
}

/* ==========================================================================
   EXACT ROYAL.WIN HEADER & NAVIGATION BAR
   ========================================================================== */

.main-header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(243, 194, 66, 0.25);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

.header-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding-right: 15px;
    flex-shrink: 0;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(243, 194, 66, 0.3));
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease-in-out;
    position: relative;
    white-space: nowrap;
}

.nav-item-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3c242;
    transition: transform 0.2s ease;
}

.nav-item-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-item:hover {
    color: #ffe596;
    background: rgba(243, 194, 66, 0.12);
}

.nav-item:hover .nav-item-icon {
    transform: translateY(-2px) scale(1.1);
    color: #ffffff;
}

.nav-item.active {
    color: #f3c242;
    border-bottom: 2px solid #f3c242;
}

.badge-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    text-decoration: none;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.badge-nav-item:hover {
    transform: scale(1.08);
}

.badge-nav-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-login:hover {
    background: rgba(243, 194, 66, 0.15);
    box-shadow: 0 0 15px rgba(243, 194, 66, 0.3);
}

.btn-register {
    background: var(--gold-button-gradient);
    border: none;
    color: #000;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 800;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-fast);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(243, 194, 66, 0.7);
}

/* ==========================================================================
   Hero Slider Banner Section (Vivid Background Images)
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #07090f;
}

.slider-container {
    position: relative;
    height: 500px;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

/* Slide Content Card */
.slide-content {
    max-width: 480px;
    padding: 35px;
    background: rgba(7, 9, 15, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
    margin-left: max(20px, calc((100vw - 1240px) / 2));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.6s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-tag {
    display: inline-block;
    background: var(--gold-gradient);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.slide-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.slide-subtitle {
    font-size: 15px;
    color: #d1d5db;
    margin-bottom: 22px;
    line-height: 1.5;
}

.slide-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold-button-gradient);
    color: #000;
    font-weight: 800;
    font-size: 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-fast);
}

.slide-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(243, 194, 66, 0.8);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    width: 32px;
    border-radius: 6px;
    background: var(--primary-gold);
}

/* Marquee Notice Ticker */
.marquee-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 10px 0;
    font-size: 13px;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.marquee-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-gold);
    font-weight: 800;
    white-space: nowrap;
}

.marquee-text {
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    color: var(--text-muted);
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Progressive Jackpot Counter
   ========================================================================== */

.jackpot-section {
    padding: 35px 0;
    background: radial-gradient(circle at center, #1b2438 0%, #0b0e14 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-dark);
}

.jackpot-box {
    background: rgba(19, 23, 34, 0.9);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    padding: 25px;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(243, 194, 66, 0.25);
    position: relative;
    overflow: hidden;
}

.jackpot-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.jackpot-amount {
    font-size: 48px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(243, 194, 66, 0.4);
    font-family: 'Courier New', monospace;
}

/* ==========================================================================
   Game Categories & Grid
   ========================================================================== */

.games-section {
    padding: 50px 0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--gold-gradient);
    color: #000;
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 25px rgba(243, 194, 66, 0.3);
}

.game-thumb {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #141a29;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-thumb img {
    transform: scale(1.08);
}

.provider-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.btn-play {
    padding: 9px 22px;
    background: var(--gold-button-gradient);
    color: #000;
    font-weight: 800;
    font-size: 12px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-demo {
    padding: 7px 18px;
    background: transparent;
    border: 1px solid var(--text-white);
    color: var(--text-white);
    font-weight: 600;
    font-size: 11px;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.game-info {
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
}

.game-rtp {
    font-size: 11px;
    color: #2ecc71;
    font-weight: 600;
}

/* ==========================================================================
   Mobile App Download Section
   ========================================================================== */

.app-section {
    background: linear-gradient(135deg, #131722 0%, #1c2436 100%);
    padding: 50px 0;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.app-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    flex-wrap: wrap;
}

.app-content {
    flex: 1;
    min-width: 280px;
}

.app-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.app-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
}

.app-feature-icon {
    color: var(--primary-gold);
    font-size: 16px;
}

.app-qr-box {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-card);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gold);
}

.qr-code-img {
    width: 100px;
    height: 100px;
    background: #fff;
    padding: 5px;
    border-radius: 6px;
}

.qr-text h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--primary-gold);
}

.qr-text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer & Provider Seals
   ========================================================================== */

.main-footer {
    background: #040508;
    padding: 50px 0 25px 0;
    border-top: 1px solid var(--border-dark);
}

.providers-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-gold);
}

.copyright-text {
    text-align: center;
    font-size: 12px;
    color: #5a6578;
}

/* Modal Popup */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 50px rgba(243, 194, 66, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    color: var(--primary-gold);
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    background: #121622;
    border: 1px solid var(--border-dark);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* ==========================================================================
   MOBILE RESPONSIVE RULES (@media max-width: 768px & 480px)
   ========================================================================== */

@media (max-width: 992px) {
    .nav-list {
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-list::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .logo-img {
        height: 36px;
    }
    .header-actions {
        margin-left: auto;
    }
    .btn-login {
        padding: 6px 14px;
        font-size: 12px;
    }
    .btn-register {
        padding: 7px 16px;
        font-size: 12px;
    }
    .nav-list {
        width: 100%;
        order: 3;
        overflow-x: auto;
        padding: 6px 0;
        gap: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-item {
        font-size: 10px;
        padding: 4px 8px;
    }
    .badge-nav-img {
        height: 38px;
    }
    
    /* Mobile Hero Slider & Background visibility */
    .slider-container {
        height: 380px;
    }
    .slide-content {
        margin-left: 15px;
        margin-right: 15px;
        max-width: calc(100% - 30px);
        padding: 22px;
        border-radius: var(--radius-md);
        background: rgba(7, 9, 15, 0.82);
    }
    .slide-title {
        font-size: 24px;
    }
    .slide-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .slide-btn {
        padding: 10px 22px;
        font-size: 13px;
    }

    /* Mobile Jackpot Counter */
    .jackpot-box {
        padding: 18px 12px;
    }
    .jackpot-title {
        font-size: 13px;
        letter-spacing: 1px;
    }
    .jackpot-amount {
        font-size: 32px;
        letter-spacing: 1px;
    }

    /* Mobile Game Grid (2 Columns) */
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .game-thumb {
        height: 130px;
    }
    .game-info {
        padding: 10px;
    }
    .game-title {
        font-size: 12px;
    }
    .game-rtp {
        font-size: 10px;
    }

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

@media (max-width: 480px) {
    .slider-container {
        height: 340px;
    }
    .slide-title {
        font-size: 20px;
    }
    .jackpot-amount {
        font-size: 26px;
    }
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
