/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --app-bg: #0E0E0E;
    --section-bg: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #C8C8C8;
    --accent-primary: #FFC727;
    --accent-secondary: #FEDA00;
    --link-color: #FFD447;
    --error-color: #E74C3C;
    --success-color: #4ECDC4;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --border-radius: 8px;
    --font-family: 'Poppins', 'Roboto', sans-serif;
    --top-nav-bg: #000000;
    --button-login-bg: #2B2B2B;
    --button-signup-bg: #FFC727;
    --button-signup-text: #000000;
    --card-bg: #1C1C1C;
    --card-border: #2A2A2A;
    --footer-bg: #111111;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--app-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--top-nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-top {
    background-color: var(--top-nav-bg);
    padding: 15px 0;
    border-bottom: 1px solid #2A2A2A;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo svg {
    height: 40px;
    width: auto;
    display: block;
}

/* CSS Logo - Modern Design */
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--app-bg);
    box-shadow: 0 3px 6px rgba(255, 200, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-text {
    font-family: var(--font-family);
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 2px;
    opacity: 0.6;
}

.header-cta {
    display: flex;
    gap: 10px;
}

.header-bottom {
    background-color: #111111;
    padding: 15px 0;
}

.main-nav {
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 5px 0;
}

.nav-list a:hover {
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Table of Contents */
.toc-wrapper {
    background-color: #111111;
    border-top: 1px solid #2A2A2A;
    overflow: hidden;
}

.toc {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.toc::-webkit-scrollbar {
    display: none;
}

.toc-list {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 15px 0;
    white-space: nowrap;
}

.toc-list li {
    flex-shrink: 0;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    display: block;
    white-space: nowrap;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--accent-primary);
    background-color: rgba(255, 199, 39, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, #FFC727 0%, #FFB800 100%);
    color: var(--button-signup-text);
    box-shadow: 0 3px 6px rgba(255, 200, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #FFD447 0%, #FFC300 100%);
    transform: scale(1.03);
}

.btn-primary:active {
    background: #E5A700;
}

.btn-secondary {
    background-color: #2B2B2B;
    color: var(--text-primary);
    border: 1px solid var(--link-color);
}

.btn-secondary:hover {
    background-color: #3C3C3C;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero Section */
#hero {
    padding: 60px 0;
    background-color: var(--section-bg);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-text p {
    margin-bottom: 15px;
}

.reading-time {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    gap: 5px;
}

.reading-time-label {
    font-weight: 600;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.hero-image {
    width: 100%;
    margin: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: contain;
}

.hero-cta {
    width: 100%;
    text-align: center;
}

.fact-checked {
    text-align: center;
    margin-top: 30px;
    color: var(--success-color);
    font-size: 14px;
    font-weight: 600;
}

/* Games Section */
#games {
    padding: 60px 0;
    background-color: var(--app-bg);
}

#games h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--link-color);
    margin-bottom: 40px;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
    aspect-ratio: 1;
}

.game-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    border-color: var(--link-color);
    transform: scale(1.03);
}

.game-card img {
    width: 100%;
    height: 100%;
    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 ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.game-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Sections */
section {
    padding: 60px 0;
    background-color: var(--section-bg);
}

section:nth-child(even) {
    background-color: var(--app-bg);
}

section h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--link-color);
    margin-bottom: 30px;
    scroll-margin-top: 120px;
}

section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

section h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.section-image {
    margin: 30px 0;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: contain;
}

.content {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.content p {
    margin-bottom: 15px;
}

.content ul,
.content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content li {
    margin-bottom: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

thead {
    background-color: #2A2A2A;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

td {
    padding: 15px;
    border-top: 1px solid #2A2A2A;
    color: var(--text-secondary);
}

tbody tr:hover {
    background-color: rgba(255, 199, 39, 0.05);
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.pros-list,
.cons-list {
    list-style: none;
    margin-left: 0;
}

.pros-list li,
.cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
}

.pros-list li {
    border-left: 3px solid var(--success-color);
}

.cons-list li {
    border-left: 3px solid var(--error-color);
}

.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;
}

/* Steps */
.steps {
    list-style: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.step-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 25px;
    position: relative;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-index {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    color: var(--button-signup-text);
    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: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Bonus Slider */
.bonus-slider {
    position: relative;
    margin: 30px 0;
}

.bonus-cards {
    list-style: none;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.bonus-cards::-webkit-scrollbar {
    display: none;
}

.bonus-card {
    flex: 0 0 300px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 25px;
    scroll-snap-align: start;
}

.bonus-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.bonus-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-prev {
    left: -20px;
}

.slider-next {
    right: -20px;
}

/* Author Section */
#author {
    background-color: var(--card-bg);
    padding: 40px 0;
}

.author-block {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.author-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.author-update {
    font-size: 14px;
    color: var(--text-secondary);
}

/* FAQ */
#faq {
    padding: 60px 0;
}

.faq-list {
    margin-top: 30px;
}

details {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    padding: 20px;
}

summary {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    padding: 10px 0;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '+ ';
    font-weight: bold;
    margin-right: 10px;
    color: var(--accent-primary);
}

details[open] summary::before {
    content: '− ';
}

details p {
    margin-top: 15px;
    color: var(--text-secondary);
    padding-left: 25px;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 60px 0 30px;
    border-top: 1px solid #2A2A2A;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo .logo,
.footer-logo-link {
    justify-content: center;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent-primary);
}

.footer-payments h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-icons img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.footer-responsible img {
    height: 40px;
    width: auto;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2A2A2A;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-primary);
    color: var(--button-signup-text);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 999;
    transition: all 0.2s ease;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top-content {
        flex-wrap: wrap;
    }

    .header-cta {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: -10px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #111111;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }

    .nav-list.active {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-right {
        order: -1;
    }

    #hero-title {
        font-size: 28px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .bonus-card {
        flex: 0 0 280px;
    }

    .author-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .slider-prev,
    .slider-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    #hero-title {
        font-size: 24px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        overflow-x: auto;
        display: flex;
        scroll-snap-type: x mandatory;
    }

    .game-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }

    section h2 {
        font-size: 28px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Table Responsive */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    thead,
    tbody,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        background-color: var(--card-bg);
        border-radius: var(--border-radius);
        padding: 15px;
    }

    td {
        display: block;
        border: none;
        padding: 5px 0;
        text-align: left;
    }

    td::before {
        content: attr(data-label) ': ';
        font-weight: 600;
        color: var(--text-primary);
        display: inline-block;
        min-width: 120px;
    }
}
