/* ============================================
   HitNSpin Casino - Light Theme Stylesheet
   Header accent: #b72238
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

/* Prevent horizontal scroll - page fixed in place on mobile */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    max-width: 100%;
    position: relative;
}

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

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

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

/* Header logo image from img/logo/ */
.logo {
    display: flex;
    align-items: center;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

/* --- Breadcrumbs Component --- (thinner) */
.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

.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: #b72238;
    text-decoration: none;
}

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

/* --- Banner Component --- */
/* Banner images inserted via <img> in HTML (img/baner/baner.png + baner-mob.png) */
.banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    background-color: #8a1a2a;
    overflow: hidden;
}

/* Banner image: full width, height auto to keep aspect ratio and cover width */
.banner__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    z-index: 0;
}

.banner__img--mob {
    display: none;
}

/* Banner image: mobile version (visible only on small screens) */
@media (max-width: 600px) {
    .banner__img--web {
        display: none;
    }
    .banner__img--mob {
        display: block;
    }
}

/* Semi-transparent overlay: full width/height, flex center for CTA */
.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: center;
    padding: 2rem;
    box-sizing: border-box;
    z-index: 1;
}

/* CTA block: centered on both axes, fixed max-width so it doesn't stretch */
.banner-cta {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.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: #fff;
    color: #b72238;
}

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

/* --- Popular Slots Section --- */
.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: #333;
}

/* Slots: 2 images across the width on all screen sizes */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Original size: do not reduce; rounded corners */
.slot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

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

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

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

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

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

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

/* --- Table Component (responsive for mobile) --- */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
}

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

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

th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Mobile table: horizontal scroll, compact padding */
@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: #2a2a2a;
    color: #ccc;
    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 (for screen readers) --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Slots stay 2 per row at all breakpoints (set in .slots-grid above) */

/* Mobile: no horizontal scroll (page fixed); banner baner-mob; slots 2 across */
@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%;
    }

    /* Logo left, nav buttons right on mobile */
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .banner {
        max-width: 100%;
    }

    .banner-cta {
        padding: 1.5rem 1.25rem;
    }

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

    /* Popular slots: 2 images across width, rest below in rows of 2 */
    .popular-slots {
        padding: 1.5rem 1rem;
        max-width: 100%;
        overflow: hidden;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .slot-item {
        width: 100%;
    }

    .slot-item img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

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

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