/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core Colors */
    --bg-900: #1F1916;
    --bg-950: #16110F;
    --surface-800: #2D221E;
    --surface-700: #3A3331;
    --surface-600: #6C5B54;
    --text-primary: #E6E0E1;
    --text-secondary: #A09793;
    --text-tertiary: #916F63;
    --divider-border: #5C5326;
    
    /* Accent Colors */
    --primary-yellow: #F5E308;
    --primary-yellow-alt: #F4DC0E;
    --gold-600: #D7A60F;
    --gold-700: #E1A218;
    
    /* Semantic Colors */
    --success-green: #1F841E;
    --promo-red: #98231A;
    --promo-maroon: #58281F;
    --promo-orange: #A0601D;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --h1-size: 26px;
    --h2-size: 21px;
    --body-size: 15px;
    --caption-size: 12px;
    
    /* Spacing */
    --spacing-base: 4px;
    --page-padding: 16px;
    --card-padding: 16px;
    
    /* Border Radius */
    --radius-pill: 999px;
    --radius-card-md: 16px;
    --radius-card-lg: 20px;
    --radius-icon: 12px;
    
    /* Container */
    --container-max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--body-size);
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-primary);
    background: linear-gradient(180deg, #16110F 0%, #1F1916 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

h1 {
    font-size: var(--h1-size);
    line-height: 1.15;
}

h2 {
    font-size: var(--h2-size);
    line-height: 1.2;
}

h3 {
    font-size: 17px;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-yellow);
}

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

li {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    min-width: 60px;
    border: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: var(--body-size);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(180deg, #F5E308 0%, #D7A60F 100%);
    color: var(--bg-950);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #F4DC0E 0%, #E1A218 100%);
    transform: translateY(-1px);
}

.btn-primary:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--surface-600);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--surface-700);
    border-color: var(--surface-600);
}

.btn-hero {
    margin-top: 1.5rem;
    width: 100%;
}

/* Header */
header {
    background: var(--bg-950);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--surface-800);
}

.header-top {
    background: var(--bg-950);
    padding: 12px 0;
    border-bottom: 1px solid var(--surface-800);
}

.header-top__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: auto;
    display: block;
}

.header-top__ctas {
    display: flex;
    gap: 12px;
}

.header-bottom {
    background: var(--bg-950);
}

.main-nav {
    display: flex;
    justify-content: center;
    padding: 12px 0;
}

.main-nav__list {
    display: flex;
    list-style: none;
    gap: 24px;
    padding: 0;
    margin: 0;
}

.main-nav__list a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav__list a:hover {
    color: var(--text-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: var(--surface-800);
    border: none;
    border-radius: var(--radius-icon);
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s;
}

/* Table of Contents */
.toc-wrapper {
    background: var(--bg-950);
    border-bottom: 1px solid var(--surface-800);
    overflow: hidden;
}

.toc {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.toc::-webkit-scrollbar {
    display: none;
}

.toc__list {
    display: flex;
    list-style: none;
    gap: 16px;
    padding: 12px 0;
    margin: 0;
    white-space: nowrap;
}

.toc__list li {
    margin: 0;
}

.toc__list a {
    display: block;
    padding: 6px 12px;
    color: var(--text-secondary);
    font-size: var(--caption-size);
    border-radius: var(--radius-pill);
    background: var(--surface-800);
    transition: all 0.2s;
}

.toc__list a:hover,
.toc__list a.active {
    color: var(--text-primary);
    background: var(--surface-600);
}

/* Hero Section */
#hero {
    padding: 120px 0;
    min-height: 85vh;
    background-image: url('/images/background.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

#hero .container {
    position: relative;
    z-index: 1;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 50%;
    padding-left: 60px;
}

.hero__text {
    margin-top: 300px;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
}

.hero__text h1 {
    margin-bottom: 1rem;
}

.hero__lead {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.reading-time {
    display: flex;
    gap: 8px;
    color: var(--text-secondary);
    font-size: var(--caption-size);
}

.reading-time__label {
    font-weight: 500;
}

.reading-time__value {
    font-weight: 600;
    color: var(--text-primary);
}

.hero__image {
    margin-top: 24px;
    margin-left: 0;
}

.hero__image figure {
    margin: 0;
}

.hero__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-card-lg);
    object-fit: contain;
}

.fact-checked {
    margin-top: 16px;
    margin-left: 0;
    padding: 8px;
    color: var(--success-green);
    font-size: var(--caption-size);
    font-weight: 600;
}

/* Games Section */
#games {
    padding: 48px 0;
}

#games h2 {
    margin-bottom: 32px;
}

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

.game-card {
    position: relative;
    border-radius: var(--radius-card-md);
    overflow: hidden;
    background: var(--surface-800);
    aspect-ratio: 1;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.game-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.game-card__overlay .btn {
    transform: translateY(10px);
    transition: transform 0.3s;
}

.game-card:hover .game-card__overlay .btn {
    transform: translateY(0);
}

/* Bonus Slider Section */
.bonus-slider {
    position: relative;
    margin: 32px 0;
    padding: 0 40px;
}

.bonus-cards {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bonus-cards::-webkit-scrollbar {
    display: none;
}

.bonus-card {
    flex: 0 0 280px;
    background: var(--surface-800);
    border: 1px solid var(--surface-700);
    border-radius: var(--radius-card-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.bonus-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-yellow);
    color: var(--surface-900);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--caption-size);
    font-weight: 600;
    text-transform: uppercase;
}

.bonus-title {
    font-size: var(--h3-size);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    margin-top: 8px;
}

.bonus-desc {
    font-size: var(--body-size);
    color: var(--text-secondary);
    margin: 0;
    flex-grow: 1;
}

.bonus-card .btn {
    width: 100%;
    margin-top: auto;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--surface-800);
    border: 1px solid var(--surface-700);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--surface-700);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.slider-prev:focus,
.slider-next:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Content Sections */
section {
    padding: 48px 0;
}

section h2 {
    margin-bottom: 24px;
}

.figure-centered {
    margin: 24px 0;
    text-align: center;
}

.figure-centered img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-card-md);
    object-fit: contain;
}

.content {
    margin-top: 24px;
}

.content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    text-align: center;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--surface-800);
    border-radius: var(--radius-card-md);
    overflow: hidden;
}

thead {
    background: var(--surface-700);
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--surface-700);
}

th {
    font-weight: 600;
    color: var(--text-primary);
}

td {
    color: var(--text-secondary);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Pros & Cons Section */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 24px 0;
}

.pros-list,
.cons-list {
    list-style: none;
    padding: 0;
}

.pros-list li,
.cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--surface-800);
    border-radius: var(--radius-card-md);
}

.pros-list li {
    border-left: 3px solid var(--success-green);
}

.cons-list li {
    border-left: 3px solid var(--promo-red);
}

.icon-check,
.icon-cross {
    flex-shrink: 0;
    margin-top: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 0;
    background: var(--bg-950);
    border-bottom: 1px solid var(--surface-800);
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: var(--caption-size);
    color: var(--text-secondary);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-tertiary);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs li:last-child {
    color: var(--text-primary);
}

/* Step-by-Step Sections */
.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.step-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--surface-800);
    border-radius: var(--radius-card-md);
    position: relative;
}

.step-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #F5E308 0%, #D7A60F 100%);
    color: var(--bg-950);
    font-weight: 700;
    font-size: 18px;
}

.step-body {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--body-size);
}

/* Author Section */
#author {
    padding: 48px 0;
    border-top: 1px solid var(--surface-800);
}

.author-block {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: var(--surface-800);
    border-radius: var(--radius-card-md);
}

.author-block__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-block__content {
    flex: 1;
}

.author-block__bio {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.author-block__date {
    font-size: var(--caption-size);
    color: var(--text-tertiary);
}

/* FAQ Section */
#faq {
    padding: 48px 0;
}

.faq-list {
    margin-top: 24px;
}

.faq-list details {
    margin-bottom: 16px;
    background: var(--surface-800);
    border-radius: var(--radius-card-md);
    overflow: hidden;
}

.faq-list summary {
    padding: 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    position: relative;
    padding-right: 40px;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-yellow);
    transition: transform 0.3s;
}

.faq-list details[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.faq-list details[open] summary {
    border-bottom: 1px solid var(--surface-700);
}

.faq-list details p {
    padding: 16px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--bg-950);
    border-top: 1px solid var(--surface-800);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer__content {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.footer__content > *:not(.footer__copyright) {
    flex: 1 1 auto;
    min-width: 150px;
}

.footer__logo img {
    height: auto;
}

.footer__nav ul {
    list-style: none;
    padding: 0;
}

.footer__nav li {
    margin-bottom: 8px;
}

.footer__nav a {
    color: var(--text-secondary);
    font-size: var(--caption-size);
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: var(--text-primary);
}

.footer__payment-methods {
    text-align: center;
}

.footer__payment-methods h3 {
    font-size: var(--body-size);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.payment-icon {
    padding: 6px 12px;
    background: var(--surface-800);
    border-radius: var(--radius-icon);
    font-size: var(--caption-size);
    color: var(--text-secondary);
}

.footer__responsible-gaming {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: fit-content;
}

.footer__responsible-gaming img {
    max-width: 120px;
    height: auto;
    opacity: 0.8;
}

.footer__responsible-gaming .btn {
    white-space: nowrap;
}

.footer__copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--surface-800);
    color: var(--text-secondary);
    font-size: var(--caption-size);
    width: 100%;
    flex-basis: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--surface-800);
    border: 1px solid var(--surface-700);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s;
    opacity: 0.8;
}

.back-to-top:hover {
    background: var(--surface-700);
    opacity: 1;
    transform: translateY(-2px);
}

.back-to-top:focus {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-top__content {
        flex-wrap: wrap;
        position: relative;
    }
    
    .header-top__ctas {
        order: 3;
        width: 100%;
        margin-top: 12px;
    }
    
    .header-top__ctas .btn {
        flex: 1;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 12px;
        right: var(--page-padding);
    }
    
    .main-nav__list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-950);
        padding: 16px;
        border-top: 1px solid var(--surface-800);
    }
    
    .main-nav__list.active {
        display: flex;
    }
    
    .main-nav__list li {
        width: 100%;
    }
    
    .main-nav__list a {
        display: block;
        padding: 12px;
    }
    
    #hero {
        background-position: right top;
    }
    
    .hero__content {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero__text {
        margin-top: 100px;
        max-width: 100%;
        width: 100%;
    }
    
    .hero__image {
        margin-top: 24px;
    }
    
    .hero__image img {
        margin-bottom: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(10, 1fr);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 8px;
    }
    
    .game-card {
        min-width: 150px;
        scroll-snap-align: start;
    }
    
    /* Bonus Slider Mobile */
    .bonus-slider {
        padding: 0 20px;
        margin: 24px 0;
    }
    
    .bonus-cards {
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        padding-bottom: 8px;
    }
    
    .bonus-card {
        flex: 0 0 260px;
        min-width: 260px;
        scroll-snap-align: start;
    }
    
    .slider-prev,
    .slider-next {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .slider-prev {
        left: -10px;
    }
    
    .slider-next {
        right: -10px;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .author-block {
        flex-direction: column;
        text-align: center;
    }
    
    .author-block__avatar {
        margin: 0 auto;
    }
    
    .footer__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer__logo {
        display: flex;
        justify-content: center;
        margin-left: 20px;
    }
    
    .footer__nav {
        display: flex;
        justify-content: center;
    }
    
    .footer__nav ul {
        text-align: center;
    }
    
    .footer__payment-methods {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer__responsible-gaming {
        display: flex;
        justify-content: center;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    table thead,
    table tbody,
    table tr {
        display: block;
    }
    
    table thead {
        display: none;
    }
    
    table tr {
        margin-bottom: 16px;
        background: var(--surface-800);
        border-radius: var(--radius-card-md);
        padding: 12px;
    }
    
    table td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border-bottom: 1px solid var(--surface-700);
    }
    
    table td:last-child {
        border-bottom: none;
    }
    
    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .step-index {
        margin: 0 auto;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .toc-wrapper,
    .back-to-top {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
