/* =====================================================
   Lemon Casino — Design System v2 (full rewrite)
   Palette:
     Primary gradient: #FFD54F (lemon) → #F57C00 (orange)
     Header dark:      #1B2827
     Body gradient:    #1B3233 → #2F615D
     Text:             #FFFFFF / #E0E0E0 / #B8B8B8
   Mobile-first, breakpoints: 768, 992, 1200
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px; line-height: 1.6; color: #E0E0E0;
    background: linear-gradient(180deg, #1B3233 0%, #2F615D 100%) fixed;
    min-height: 100vh;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* =====================================================
   HEADER / NAVBAR
   ===================================================== */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: #1B2827;
    box-shadow: 0 2px 20px rgba(0,0,0,0.35);
    padding: 0;
    min-height: 68px;
    display: block;
    width: 100%;
}
.container-fluid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.logo {
    flex-shrink: 0;
    display: flex; align-items: center;
    padding: 0;
}
.logo a { display: block; line-height: 0; }
.logo img { max-height: 38px; width: auto; height: auto; }

/* Nav (desktop menu wrapper) */
.navbar-collapse {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
    margin: 0; padding: 0;
    list-style: none;
    flex: 1;
    justify-content: center;
}
a.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 4px;
    position: relative;
    white-space: nowrap;
    transition: color .2s ease;
}
a.nav-link:hover { color: #FFD54F; }
a.nav-link.active { color: #FFD54F; }
a.nav-link.active::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #FFD54F, #F57C00);
}

/* Header user (desktop buttons pair) */
.header-user {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
}
.header-menu_mobile { display: none; }

/* Burger */
.navbar-toggle {
    display: none;
    background: transparent; border: none; padding: 8px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
}
.menu-toggle-button {
    display: flex; flex-direction: column; gap: 5px;
    width: 26px;
}
.icon-bar {
    display: block; height: 3px; width: 100%;
    background: #FFD54F;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(2) { opacity: 0; }
.navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =====================================================
   BUTTONS — unified
   ===================================================== */
.login {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px;
    background: transparent;
    border: 2px solid #FFD54F;
    border-radius: 999px;
    color: #FFD54F;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
    min-height: 40px;
    line-height: 1;
}
.login:hover {
    background: rgba(255,213,79,0.10);
    color: #FFD54F;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,213,79,0.20);
}

.btn.signup, .signup, .btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 24px;
    background: linear-gradient(135deg, #FFD54F 0%, #F57C00 100%);
    border: none;
    border-radius: 999px;
    color: #1a1a1a;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(245,124,0,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
    min-height: 40px;
    line-height: 1;
}
.btn.signup:hover, .signup:hover, .btn:hover {
    background: linear-gradient(135deg, #FFE07A 0%, #FF8C1A 100%);
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245,124,0,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Anchor wraps around buttons — remove decoration */
.header-user a, .header-menu_mobile a { text-decoration: none; line-height: 0; display: inline-flex; }

/* Big CTA (Play Now / Odbierz Bonus at end of section) */
.sec-btn {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 32px auto 8px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #FFD54F 0%, #F57C00 100%);
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border-radius: 999px;
    box-shadow: 0 6px 22px rgba(245,124,0,0.4), inset 0 1px 0 rgba(255,255,255,0.35);
    transition: all .2s ease;
}
.sec-btn:hover {
    background: linear-gradient(135deg, #FFE07A 0%, #FF8C1A 100%);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,124,0,0.55);
}

/* =====================================================
   MAIN LAYOUT
   ===================================================== */
.main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 16px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}
.block-left { position: sticky; top: 90px; }
.side-img { border-radius: 12px; overflow: hidden; }
.side-img img { border-radius: 12px; width: 100%; }
.left-img a { display: block; line-height: 0; }
.container {
    max-width: 100%;
    padding: 0;
    text-align: left;
}

/* Banners */
.banner, .banner-mobile { border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.banner a, .banner-mobile a { display: block; line-height: 0; }
.banner img, .banner-mobile img { width: 100%; height: auto; display: block; }
.banner { display: block; }
.banner-mobile { display: none; }

/* =====================================================
   CONTENT AREA — .content-casino
   ===================================================== */
.content-casino {
    background: rgba(0,0,0,0.22);
    border-radius: 16px;
    padding: 32px;
    color: #E8E8E8;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.content-casino h1 {
    color: #FFFFFF;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 24px;
    letter-spacing: -0.3px;
}
.content-casino h2 {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,213,79,0.20);
    letter-spacing: -0.2px;
}
.content-casino h3 {
    color: #FFD54F;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin: 28px 0 12px;
}
.content-casino p, .content-casino .description {
    color: #E0E0E0;
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0 0 14px;
}
.content-casino strong { color: #FFD54F; font-weight: 700; }
.content-casino a { color: #FFD54F; text-decoration: underline; text-underline-offset: 3px; }
.content-casino a:hover { color: #FFE07A; }

.content-casino ul, .content-casino ol {
    margin: 12px 0 20px;
    padding-left: 22px;
    color: #E0E0E0;
}
.content-casino li {
    margin-bottom: 10px;
    line-height: 1.65;
    font-size: 15.5px;
}
.content-casino ul li::marker { color: #FFD54F; }
.content-casino ol li::marker { color: #FFD54F; font-weight: 700; }

.content-casino table { width: 100%; }
.content-casino table td { font-size: 14.5px; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer-content {
    background: #14201F;
    margin-top: 48px;
    padding: 32px 0 0;
}
.footer-content .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}
.footer-menu { padding: 0; }
.logo-footer {
    display: flex; flex-direction: column; align-items: center;
    gap: 20px; padding-bottom: 24px;
}
.logo-footer a { display: block; line-height: 0; }
.logo-footer img { max-height: 36px; width: auto; }
.footer-menu-item {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px 24px;
    padding: 0;
}
.footer-menu-item a {
    color: #B8B8B8;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}
.footer-menu-item a:hover { color: #FFD54F; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 24px;
    padding: 20px 0;
}
.providers-logo {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center;
    gap: 16px; padding: 8px 16px 20px;
}
.providers-logo img {
    max-height: 22px; width: auto;
    opacity: 0.7;
    transition: opacity .2s;
    display: block;
}
.providers-logo img:hover { opacity: 1; }
.footer-copy {
    color: #B8B8B8;
    font-size: 12.5px;
    line-height: 1.65;
    padding: 16px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
.footer-copy strong { color: #FFD54F; font-weight: 700; }

/* =====================================================
   RESPONSIVE — tablet (< 992px)
   ===================================================== */
@media (max-width: 991px) {
    .container-fluid {
        padding: 10px 14px;
        gap: 8px;
    }
    .navbar { min-height: 60px; }
    .logo img { max-height: 30px; }

    /* Show burger, hide desktop nav & pair */
    .navbar-toggle { display: block; order: 3; margin-left: auto; }
    .header-user { display: none; }

    /* Menu dropdown */
    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #1B2827;
        padding: 20px 16px 24px;
        border-top: 1px solid rgba(255,213,79,0.15);
        box-shadow: 0 12px 30px rgba(0,0,0,0.5);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .navbar-collapse.show { display: flex; }

    /* Mobile buttons on top */
    .header-menu_mobile {
        display: flex;
        gap: 10px;
        margin: 0 0 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.10);
    }
    .header-menu_mobile a { flex: 1; display: block; line-height: 0; }
    .header-menu_mobile .login,
    .header-menu_mobile .btn.signup,
    .header-menu_mobile .signup {
        width: 100%;
        display: flex;
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Mobile nav */
    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }
    a.nav-link {
        display: block;
        padding: 12px 16px;
        font-size: 16px;
        text-align: center;
        border-radius: 8px;
        width: 100%;
        color: #E8E8E8;
    }
    a.nav-link:hover, a.nav-link.active {
        background: rgba(255,213,79,0.08);
        color: #FFD54F;
    }
    a.nav-link.active::after { display: none; }

    /* Layout */
    .main {
        grid-template-columns: 1fr;
        padding: 16px 12px;
        gap: 16px;
    }
    .block-left { display: none; }

    .banner { display: none; }
    .banner-mobile { display: block; }

    .content-casino { padding: 22px 18px; border-radius: 14px; }
    .content-casino h1 { font-size: 26px; }
    .content-casino h2 { font-size: 21px; margin-top: 32px; }
    .content-casino h3 { font-size: 17px; }
    .content-casino p, .content-casino .description, .content-casino li { font-size: 15px; }

    .footer-menu-item { gap: 6px 18px; font-size: 13px; }
    .providers-logo { gap: 12px; }
    .providers-logo img { max-height: 20px; }
}

/* =====================================================
   RESPONSIVE — small phone (< 480px)
   ===================================================== */
@media (max-width: 480px) {
    .container-fluid { padding: 10px 12px; }
    .logo img { max-height: 28px; }
    .content-casino { padding: 18px 14px; }
    .content-casino h1 { font-size: 23px; }
    .content-casino h2 { font-size: 19px; }
    .content-casino h3 { font-size: 16px; }
    .sec-btn { padding: 16px 24px; font-size: 14px; }
}

/* =====================================================
   HOTFIX v2.1 — target selectors, overflow, footer row
   ===================================================== */

/* Prevent horizontal scroll caused by wide content on mobile */
html, body { overflow-x: hidden; max-width: 100vw; }
.container-fluid, .main, .content-casino, .footer-content { max-width: 100%; }
.content-casino { overflow-wrap: break-word; word-wrap: break-word; }
.content-casino table { table-layout: auto; }

/* Images inside body content — no overflow */
.content-casino img { max-width: 100%; height: auto; }

/* Footer menu — ALWAYS row (desktop + mobile). Previously column on mobile
   due to broad ".navbar-nav" rule in @media block. */
.footer-menu-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 22px;
    padding: 6px 0;
    text-align: center;
}
.footer-menu-item a,
.footer-menu-item a.nav-link,
.footer-menu-item a.nav-items,
.footer-menu-item a.nav-link.nav-items {
    display: inline-block !important;
    width: auto !important;
    text-align: center !important;
    color: #B8B8B8 !important;
    background: transparent !important;
    padding: 4px 0 !important;
    font-size: 13.5px !important;
    line-height: 1.4;
    border-radius: 0 !important;
    border-bottom: none !important;
}
.footer-menu-item a:hover,
.footer-menu-item a.nav-link:hover { color: #FFD54F !important; background: transparent !important; }
.footer-menu-item a.nav-link.active::after { display: none !important; }

/* Mobile header nav — RESTRICT column layout to header only (not footer) */
@media (max-width: 991px) {
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        justify-content: flex-start;
    }
    .navbar-collapse a.nav-link {
        display: block;
        padding: 12px 16px;
        font-size: 16px;
        text-align: center;
        border-radius: 8px;
        width: 100%;
        color: #E8E8E8;
    }
    .navbar-collapse a.nav-link:hover,
    .navbar-collapse a.nav-link.active {
        background: rgba(255,213,79,0.08);
        color: #FFD54F;
    }
}

/* CTA banner (Fireball-style block) — allow wrap on narrow screens */
.content-casino a[data-pid="banner"] > div { min-width: 0 !important; }

/* Also fix side banner from overflowing on small viewports */
.block-left, .side-img { max-width: 100%; overflow: hidden; }
.side-img img { max-width: 100%; height: auto; }

/* Main padding — smaller on very narrow */
@media (max-width: 480px) {
    .main { padding: 12px 8px; gap: 12px; }
    .content-casino { padding: 16px 12px; border-radius: 12px; }
}
