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

:root {
    /* Colors from design system */
    --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, Oxygen, Ubuntu, Cantarell, sans-serif;
    --h1-size: 26px;
    --h2-size: 20px;
    --body-size: 14px;
    --caption-size: 12px;
    
    /* Spacing */
    --spacing-base: 4px;
    --container-max-width: 1200px;
    --page-padding: 16px;
    
    /* Border radius */
    --radius-pill: 999px;
    --radius-card-md: 16px;
    --radius-card-lg: 20px;
    --radius-icon: 12px;
}

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;
}

/* 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;
    color: var(--text-primary);
    line-height: 1.2;
    text-align: center;
    text-transform: capitalize;
}

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

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: 18px;
}

p {
    margin-bottom: 1em;
    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-left: 1.5em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

/* Visually hidden */
.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;
}

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

.header-top {
    border-bottom: 1px solid var(--surface-800);
}

.header-top__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--page-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

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

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

.header-nav__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--page-padding);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 16px;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: var(--surface-800);
    border: none;
    border-radius: var(--radius-icon);
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

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

/* Table of Contents */
.toc-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    overflow: hidden;
}

.toc {
    background: var(--bg-950);
    padding: 12px var(--page-padding);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

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

.toc__list li {
    margin: 0;
}

.toc__list a {
    color: var(--text-secondary);
    font-size: var(--caption-size);
    padding: 6px 12px;
    display: block;
    white-space: nowrap;
    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);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-family);
    font-size: var(--body-size);
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    min-width: 60px;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(0);
}

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

.btn--outline:hover {
    background: var(--surface-700);
}

/* Hero Section */
.hero {
    padding: 420px 0 80px;
    min-height: 100vh;
    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: linear-gradient(180deg, rgba(22, 17, 15, 0.7) 0%, rgba(31, 25, 22, 0.75) 100%);
    z-index: 0;
}

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

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.hero__text {
    max-width: 600px;
    margin-left: -40px;
}

.hero__text h1 {
    margin-bottom: 16px;
    text-align: left;
}

.hero__lead {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.hero__meta {
    margin-top: 16px;
}

.reading-time {
    color: var(--text-secondary);
    font-size: var(--caption-size);
}

.reading-time__label {
    margin-right: 8px;
}


.hero__cta {
    margin-top: 32px;
    text-align: center;
}

.hero__fact-check {
    margin-top: 24px;
    text-align: center;
    color: var(--success-green);
    font-size: var(--caption-size);
}

/* Games Section */
.games-section {
    padding: 48px 0;
}

.section-title {
    font-size: var(--h2-size);
    margin-bottom: 32px;
    text-align: center;
    text-transform: capitalize;
}

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

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

.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;
}

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

.content-section h2 {
    margin-bottom: 24px;
}

.section-image {
    margin: 24px 0;
    text-align: center;
}

.section-image 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;
}

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

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

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

.content table th {
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Bonuses Section */
.bonuses-section {
    padding: 48px 0;
}

.bonus-slider {
    position: relative;
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

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

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

.bonus-card {
    min-width: 280px;
    background: var(--surface-800);
    border-radius: var(--radius-card-md);
    padding: 24px;
    scroll-snap-align: start;
}

.bonus-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-align: center;
    text-transform: capitalize;
}

.bonus-desc {
    font-size: var(--caption-size);
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.slider-prev,
.slider-next {
    background: var(--surface-800);
    border: none;
    border-radius: var(--radius-pill);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: background 0.2s;
}

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

.slider-prev::before {
    content: '‹';
    font-size: 24px;
    line-height: 1;
}

.slider-next::before {
    content: '›';
    font-size: 24px;
    line-height: 1;
}

/* Steps Section */
.steps-section {
    padding: 48px 0;
}

.steps {
    list-style: none;
    margin: 32px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.step-index {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: var(--bg-950);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-body {
    flex: 1;
}

.step-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-align: center;
    text-transform: capitalize;
}

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

/* Pros & Cons Section */
.pros-cons-section {
    padding: 48px 0;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 32px 0;
}

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

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

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

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

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

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

.author-block {
    display: flex;
    gap: 24px;
    align-items: start;
}

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

.author-name {
    font-size: 18px;
    margin-bottom: 8px;
    text-align: center;
    text-transform: capitalize;
}

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

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

/* FAQ Section */
.faq-section {
    padding: 48px 0;
}

.faq-list {
    margin: 32px 0;
}

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

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
    text-transform: capitalize;
}

.faq-question::marker {
    display: none;
}

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

.faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
}

.faq-answer p {
    margin: 0;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

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

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: var(--body-size);
}

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

.footer-payments h3 {
    font-size: var(--body-size);
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

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

.footer-responsible a {
    display: inline-block;
}

.footer-copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--surface-800);
    color: var(--text-tertiary);
    font-size: var(--caption-size);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--surface-800);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 999;
}

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

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top__container {
        flex-wrap: wrap;
    }
    
    .header-ctas {
        order: 3;
        width: 100%;
        margin-top: 16px;
        justify-content: center;
    }
    
    header {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 16px;
        right: 16px;
        z-index: 1001;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 12px;
        text-align: center;
    }
    
    .hero__content {
        grid-template-columns: 1fr;
    }
    
    .hero__text {
        max-width: 100%;
    }
    
    .hero__text h1 {
        text-align: center;
    }
    
    .hero__cta {
        margin-top: 24px;
        text-align: center;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 16px;
    }
    
    .game-card {
        scroll-snap-align: start;
        min-width: 150px;
    }
    
    .bonus-slider {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .bonus-cards {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bonus-card {
        min-width: 260px;
    }
    
    .slider-prev,
    .slider-next {
        flex-shrink: 0;
        order: 0;
        align-self: center;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .author-block {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .payment-icons {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    :root {
        --page-padding: 12px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .hero {
        padding: 280px 0 48px;
        min-height: 80vh;
        background-size: cover;
        background-position: right top;
        position: relative;
    }
    
    .hero__text {
        margin-left: 0;
        position: relative;
        margin-top: 60px;
    }
    
    .hero__text h1 {
        position: absolute;
        top: -300px;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
    }
    
    .content-section {
        padding: 32px 0;
    }
    
    .content table {
        font-size: var(--caption-size);
    }
    
    .content table th,
    .content table td {
        padding: 8px;
    }
}

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