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

:root {
    /* Colors from design system */
    --primary-orange: #F56908;
    --primary-orange-dark: #D45706;
    --primary-orange-darker: #B84805;
    --primary-blue: #1E2FA8;
    --primary-blue-dark: #16237D;
    --accent-gold: #F5C542;
    --background-light: #FFFFFF;
    --background-gray: #F2F2F2;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-light: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.15);
    --success-green: #0F8A3C;
    --error-red: #D32F2F;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 3rem 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
}

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

/* Typography */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    color: #222222;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

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

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--background-light);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--primary-orange-dark);
}

.btn-primary:active {
    background: var(--primary-orange-darker);
}

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

.btn-secondary:hover {
    background: var(--background-gray);
}

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

/* Header */
header {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    box-shadow: 0 2px 6px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 1rem 0;
}

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

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

.header-ctas {
    display: flex;
    gap: 1rem;
}

.header-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--background-light);
    transition: all 0.3s;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
    justify-content: center;
    padding: 1rem 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    color: var(--background-light);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: var(--accent-gold);
}

/* Table of Contents */
.toc-wrapper {
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.toc {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.toc a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--background-light);
    white-space: nowrap;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.toc a:hover,
.toc a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-gold);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #7A2E00 0%, var(--primary-orange) 55%, var(--accent-gold) 100%);
    padding: 4rem 1rem;
    color: var(--background-light);
}

#hero h1 {
    color: var(--background-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

#hero .lead {
    color: rgba(255, 255, 255, 0.95);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reading-time {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-image figure {
    width: 100%;
    max-width: 600px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.fact-checked {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Games Section */
#games {
    padding: var(--section-padding);
    background: var(--background-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.games-row {
    display: contents;
}

.game-card {
    position: relative;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card-featured {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: 750px;
    max-width: calc(100% - 3rem);
    margin: 2rem auto 0;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.game-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.game-card-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.game-card-featured img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

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

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

/* Sections */
section {
    padding: var(--section-padding);
}

section:nth-child(even) {
    background: var(--background-gray);
}

.section-image {
    margin: 2rem 0;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

.content {
    max-width: 100%;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

thead {
    background: var(--primary-blue);
    color: var(--background-light);
}

th, td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-weight: 600;
}

tbody tr:hover {
    background: var(--background-gray);
}

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

.step-card {
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s;
}

.step-card:hover {
    transform: translateY(-3px);
}

.step-index {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.step-body {
    flex: 1;
}

.step-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    text-align: center;
}

/* Pros and Cons Section */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

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

.pros-list li,
.cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--background-light);
    border-radius: 8px;
}

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

.cons-list li {
    border-left: 3px solid var(--error-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;
}

/* Bonus Slider */
.bonus-slider {
    position: relative;
    margin: 2rem 0;
    padding: 0 3rem;
}

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

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

.bonus-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    scroll-snap-align: start;
}

.bonus-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-align: center;
}

.bonus-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: var(--background-light);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-orange-dark);
}

/* Author Section */
#author {
    background: var(--background-gray);
}

.author-block {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
}

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

.author-info h3 {
    margin-bottom: 0.5rem;
}

.author-update {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 2rem auto;
}

details {
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
}

summary {
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    list-style: none;
    position: relative;
    padding-left: 2rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '+';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
}

details[open] summary::before {
    content: '−';
}

.faq-content {
    padding: 1rem 0 0.5rem 2rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--background-gray);
    padding: 3rem 1rem 1.5rem;
    margin-top: 4rem;
}

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

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

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

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-payments h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-icon {
    padding: 0.5rem 1rem;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-responsible {
    margin-top: 1rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    background: var(--background-gray);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-orange);
}

.breadcrumb span {
    color: var(--text-secondary);
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    color: var(--primary-orange);
    margin-bottom: 0.75rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
}

/* Table Cards (Mobile) */
.table-cards {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.table-card {
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-card-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.table-card-item:last-child {
    border-bottom: none;
}

.table-card-item strong {
    color: var(--text-primary);
    display: inline-block;
    min-width: 120px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: var(--background-light);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-orange-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header-top {
        position: relative;
    }
    
    .header-top .container {
        position: relative;
    }
    
    .header-top-content {
        flex-wrap: wrap;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
    }
    
    .header-top-content .logo {
        order: 1;
    }
    
    .header-top-content .header-ctas {
        order: 2;
        width: 100%;
        margin-top: 1rem;
        justify-content: flex-end;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue-dark);
        padding: 1rem;
        gap: 0;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list a {
        display: block;
        padding: 0.75rem;
    }
    
    .header-ctas {
        width: 100%;
        margin-top: 1rem;
        justify-content: flex-end;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: none;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .games-row {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .games-row::-webkit-scrollbar {
        display: none;
    }
    
    .games-row .game-card {
        flex: 0 0 280px;
        width: 280px;
        max-width: 280px;
        scroll-snap-align: start;
        touch-action: pan-x pan-y;
    }
    
    #games {
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    #games .container {
        overflow-x: visible;
        overflow-y: visible;
    }
    
    .game-card-featured {
        width: 100%;
        max-width: 100%;
        margin: 1rem 0 0;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .bonus-card {
        flex: 0 0 85%;
    }
    
    .bonus-slider {
        padding: 0 2.5rem;
    }
    
    .author-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .author-info {
        width: 100%;
    }
    
    .table-wrapper {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    section {
        padding: 2rem 0.75rem;
    }
    
    #hero {
        padding: 2rem 0.75rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}
