/* ============================
   GLOBAL / RESET
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --clr-primary: #1e3a5f;
    --clr-accent: #d4a24e;
    --clr-accent-hover: #c08f38;
    --clr-bg: #f5f5f0;
    --clr-surface: #ffffff;
    --clr-text: #2c2c2c;
    --clr-text-muted: #6b7280;
    --clr-heading: #1e293b;
    --clr-border: #d1d5db;
    --clr-dark-bg: #1a2332;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--clr-text);
    background: var(--clr-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--clr-primary);
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--clr-heading);
    line-height: 1.25;
}

/* unused style for uniqueness */
.hidden-spacer { display: none; width: 1px; height: 1px; }
.alt-font-test { font-family: Georgia, serif; visibility: hidden; }

/* ============================
   CTA BUTTON
   ============================ */
.cta-btn {
    display: inline-block;
    background: var(--clr-accent);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.25s ease;
    letter-spacing: 0.3px;
    font-family: var(--font-body);
}

.cta-btn:hover {
    background: var(--clr-accent-hover);
    color: #fff;
}

.cta-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* ============================
   HEADER
   ============================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 0 24px;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.site-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: 0.5px;
}

/* Burger */
.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-primary);
    transition: all 0.3s ease;
}

.burger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
    opacity: 0;
}
.burger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--clr-surface);
    padding: 12px 0 16px;
    border-top: 1px solid var(--clr-border);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    padding: 10px 0;
    color: var(--clr-text);
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-nav a:hover {
    color: var(--clr-accent);
}

/* ============================
   HERO
   ============================ */
.hero-section {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 64px;
    overflow: hidden;
    background: var(--clr-dark-bg);
}

.hero-bg-animated {
    position: absolute;
    inset: 0;
    background: url('/images/hero-bg.jpg') center center / cover no-repeat;
    animation: heroPan 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroPan {
    0% { transform: scale(1.05) translateX(-1%); }
    100% { transform: scale(1.12) translateX(1%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,35,50,0.72) 0%, rgba(30,58,95,0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px;
    max-width: 720px;
}

.hero-content h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 16px;
    text-wrap: balance;
}

.hero-content p {
    color: #d1d5db;
    font-size: 17px;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ============================
   MAIN LAYOUT
   ============================ */
.main-layout {
    display: flex;
    gap: 32px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 24px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* ============================
   SIDEBAR
   ============================ */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-block {
    background: var(--clr-surface);
    padding: 20px;
    border: 1px solid var(--clr-border);
}

.sidebar-block h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--clr-primary);
}

.sidebar-block p {
    font-size: 14px;
    color: var(--clr-text-muted);
    margin-bottom: 14px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--clr-text);
}

.sidebar-list i {
    color: var(--clr-accent);
    font-size: 16px;
}

.rtp-display {
    font-size: 42px;
    font-weight: 700;
    color: var(--clr-accent);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form input {
    padding: 10px 12px;
    border: 1px solid var(--clr-border);
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--clr-bg);
    color: var(--clr-text);
}

.newsletter-form input:focus {
    outline: 2px solid var(--clr-accent);
    border-color: var(--clr-accent);
}

/* ============================
   TABLE OF CONTENT
   ============================ */
.toc-section {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    margin-bottom: 28px;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}

.toc-header h2 {
    font-size: 20px;
    margin: 0;
}

.toc-icon {
    font-size: 18px;
    color: var(--clr-text-muted);
    transition: transform 0.3s ease;
}

.toc-icon.rotated {
    transform: rotate(180deg);
}

.toc-list {
    display: none;
    padding: 0 20px 20px 40px;
    margin: 0;
}

.toc-list.open {
    display: block;
}

.toc-list li {
    padding: 6px 0;
    font-size: 15px;
}

.toc-list a {
    color: var(--clr-primary);
    font-weight: 500;
}

.toc-list a:hover {
    color: var(--clr-accent);
}

/* ============================
   CONTENT BLOCK
   ============================ */
.content-block {
    background: var(--clr-surface);
    padding: 28px 24px;
    margin-bottom: 28px;
    border: 1px solid var(--clr-border);
}

.content-block h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--clr-heading);
}

.content-block h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--clr-heading);
}

.content-block p {
    margin-bottom: 14px;
    line-height: 1.6;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}

.styled-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.55;
}

.styled-list i {
    color: var(--clr-accent);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ============================
   CASINO SECTION
   ============================ */
.casino-section {
    background: var(--clr-surface);
    padding: 28px 24px;
    margin-bottom: 28px;
    border: 1px solid var(--clr-border);
}

.casino-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.casino-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.casino-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    flex-wrap: wrap;
}

.casino-rank {
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 60px;
}

.rank-gold { color: #d4a24e; }
.rank-gold i { color: #d4a24e; }
.rank-silver { color: #8e8e8e; }
.rank-silver i { color: #8e8e8e; }
.rank-bronze { color: #b87333; }
.rank-bronze i { color: #b87333; }
.rank-other { color: var(--clr-text-muted); }
.rank-other i { color: var(--clr-text-muted); }

.casino-info {
    flex: 1;
    min-width: 180px;
}

.casino-info h3 {
    font-size: 17px;
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 600;
}

.casino-bonus {
    font-size: 13px;
    color: var(--clr-text-muted);
    margin: 0;
}

.casino-rating {
    font-size: 22px;
    font-weight: 700;
    color: var(--clr-primary);
    font-family: var(--font-heading);
    min-width: 50px;
    text-align: center;
}

/* ============================
   TYPES SECTION
   ============================ */
.types-section {
    margin-bottom: 28px;
}

.types-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.type-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.type-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.type-card h3 {
    font-size: 16px;
    padding: 14px 14px 6px;
    font-family: var(--font-body);
    font-weight: 600;
}

.type-card p {
    font-size: 13px;
    color: var(--clr-text-muted);
    padding: 0 14px;
    flex: 1;
    line-height: 1.5;
}

.type-card .cta-btn {
    margin: 12px 14px 14px;
    text-align: center;
}

/* ============================
   LIVE SECTION
   ============================ */
.live-section {
    margin-bottom: 28px;
}

.live-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.live-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    overflow: hidden;
}

.live-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.live-card-body {
    padding: 16px;
}

.live-card-body h3 {
    font-size: 17px;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 600;
}

.live-card-body p {
    font-size: 14px;
    color: var(--clr-text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* ============================
   TABLE
   ============================ */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px auto;
    font-size: 15px;
}

.styled-table th,
.styled-table td {
    text-align: left;
    padding: 12px 16px;
    border: 1px solid var(--clr-border);
}

.styled-table thead th {
    background: var(--clr-primary);
    color: #fff;
    font-weight: 600;
}

.styled-table tbody tr:nth-child(even) {
    background: var(--clr-bg);
}

.table-responsive {
    overflow-x: auto;
}

/* ============================
   SLIDER
   ============================ */
.slider-section {
    margin-bottom: 28px;
}

.slider-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.slider-track-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.dark-bg {
    background: var(--clr-dark-bg);
}

.slider-track {
    display: flex;
    gap: 32px;
    animation: scrollSlider 25s linear infinite;
    width: max-content;
}

.slider-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 60px;
    background: var(--clr-surface);
    padding: 8px 12px;
}

.slider-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

/* ============================
   FAQ
   ============================ */
.faq-section {
    margin-bottom: 28px;
}

.faq-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.faq-item {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    margin-bottom: 8px;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--clr-heading);
    user-select: none;
}

.faq-question:hover {
    color: var(--clr-accent);
}

.faq-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 16px;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--clr-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: var(--clr-dark-bg);
    color: #cbd5e1;
    padding: 0 24px;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    gap: 40px;
    padding: 40px 0 24px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 240px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-brand .site-name {
    color: #fff;
}

.footer-desc {
    font-size: 13px;
    margin-top: 12px;
    color: #94a3b8;
    line-height: 1.55;
}

.footer-nav {
    min-width: 140px;
}

.footer-nav h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    padding: 4px 0;
}

.footer-nav a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--clr-accent);
}

.footer-responsible h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 600;
}

.responsible-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.responsible-logos a {
    display: flex;
    align-items: center;
}

.responsible-logos img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(0.7);
}

.responsible-logos a:hover img {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 16px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #64748b;
}

/* unused style block */
.decoration-element { position: absolute; width: 0; height: 0; }
.extra-margin-fix { margin-right: 0.01px; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sidebar {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        padding: 20px 16px;
    }

    .sidebar {
        width: 100%;
        order: -1;
    }

    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .casino-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .types-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-section {
        min-height: 380px;
    }

    .content-block {
        padding: 20px 16px;
    }

    .casino-section {
        padding: 20px 16px;
    }
}
