/* ============================================
   Fairspin Casino - Dark Theme Stylesheet
   Header color: #141414
   ============================================ */

/* --- CSS Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Base: prevent horizontal scroll, fix viewport on mobile */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Body: dark theme background, fixed width to prevent mobile overflow */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #1a1a1a;
    overflow-x: hidden;
    min-height: 100vh;
    max-width: 100%;
    position: relative;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2d2d2d;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* --- Header Component --- */
/* Dark header: #141414 as specified */
.site-header {
    background: #141414;
    color: #fff;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    display: block;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.main-nav a:hover {
    color: #c9c9c9;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}

/* --- Breadcrumbs Component --- */
.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    line-height: 1.3;
    background: #1a1a1a;
    color: #999;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #666;
}

.breadcrumbs a {
    color: #7cb3e8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* --- Banner Component --- */
/* Banner: img/baner/baner.webp (web) + baner-mob.webp (mobile) */
.banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    background-color: #0d0d0d;
    overflow: hidden;
}

.banner__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    z-index: 0;
}

.banner__img--mob {
    display: none;
}

/* Mobile: show mobile banner, hide web banner */
@media (max-width: 600px) {
    .banner__img--web {
        display: none;
    }
    .banner__img--mob {
        display: block;
    }
}

/* Semi-transparent overlay: CTA block positioning */
/* Web: left | Mobile: center */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    box-sizing: border-box;
    z-index: 1;
}

/* Web: CTA aligned left */
@media (min-width: 601px) {
    .banner-overlay {
        justify-content: flex-start;
        padding-left: 3rem;
    }
}

/* Mobile: CTA centered */
@media (max-width: 600px) {
    .banner-overlay {
        justify-content: center;
        align-items: center;
        padding: 1.5rem;
    }
}

/* CTA block: semi-transparent with backdrop blur */
.banner-cta {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    text-align: left;
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile: center text in CTA block */
@media (max-width: 600px) {
    .banner-cta {
        text-align: center;
        padding: 1.5rem 1.25rem;
    }
}

.banner-title {
    color: #fff;
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.banner-text {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1.5rem;
    line-height: 1.4;
}

/* --- Button Component --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary {
    background: #ecbd80;
    color: #141414;
}

.btn-primary:hover {
    background: #e5b56e;
    transform: translateY(-1px);
}

/* --- Popular Slots Section --- */
/* 12 slots in grid: 6 columns on desktop, 2 on mobile */
.popular-slots {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

/* Desktop: 6 columns (2 rows of 6) */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.slot-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.slot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* Mobile: 2 columns (6 rows of 2), fix overflow */
@media (max-width: 600px) {
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

/* --- Main Content --- */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.content-article h1 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
}

.content-article h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #e8e8e8;
}

.content-article h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-article p {
    margin-bottom: 1rem;
    color: #c9c9c9;
}

.content-article ul,
.content-article ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-article a {
    color: #7cb3e8;
}

/* --- Table Component --- */
/* Responsive: horizontal scroll on mobile, card-like layout for very small screens */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #333;
}

th {
    background: #252525;
    font-weight: 600;
    color: #fff;
}

td {
    background: #1f1f1f;
    color: #c9c9c9;
}

/* Mobile table: compact, horizontal scroll, data-label for card layout */
@media (max-width: 600px) {
    .table-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem;
    }

    table {
        font-size: 0.8rem;
        min-width: 280px;
    }

    th, td {
        padding: 0.5rem 0.6rem;
    }
}

/* --- Footer Component --- */
.site-footer {
    background: #141414;
    color: #999;
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-payments {
    margin-bottom: 1.5rem;
}

.payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.payment-logos img {
    height: 28px;
    width: auto;
    opacity: 0.9;
}

.footer-copy {
    font-size: 0.875rem;
    margin: 0;
}

/* --- Visually hidden (screen readers) --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ============================================
   Mobile: Fix screen overflow (viewport lock)
   ============================================ */
@media (max-width: 600px) {
    html {
        font-size: 15px;
        overflow-x: hidden;
        max-width: 100vw;
    }

    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .site-header {
        padding: 0.5rem 1rem;
        max-width: 100%;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .banner {
        max-width: 100%;
    }

    .banner-title {
        font-size: 1.35rem;
    }

    .popular-slots {
        padding: 1.5rem 1rem;
        max-width: 100%;
        overflow: hidden;
    }

    .main-content {
        padding: 0 1rem 2rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .breadcrumbs {
        padding: 0.35rem 1rem;
        max-width: 100%;
    }
}
