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

:root {
    /* Colors from design system */
    --bg-app: #0F0E0D;
    --bg-section: #141210;
    --bg-card-base: #1C1A18;
    --bg-card-elevated: #22201E;
    --overlay: rgba(0,0,0,0.6);
    
    --gold-primary: #F5C56B;
    --gold-hover: #FFD98A;
    --gold-pressed: #E3B85F;
    --amber-secondary: #D9A441;
    
    --text-heading: #FFFFFF;
    --text-body: #E6E2DC;
    --text-secondary: #A9A49D;
    --text-muted: #7A756F;
    --text-on-gold: #1A1206;
    
    --icon-nav: #F5C56B;
    --icon-nav-inactive: #6F6A63;
    --icon-action: #FFFFFF;
    --icon-disabled: #4E4A45;
    
    --border-subtle: rgba(255,255,255,0.06);
    --border-active: #F5C56B;
    
    /* Gradients */
    --gradient-card: linear-gradient(135deg, #1E1C1A 0%, #262320 100%);
    --gradient-button: linear-gradient(135deg, #F5C56B 0%, #D9A441 100%);
    
    /* Shadows */
    --shadow-card: 0 6px 20px rgba(0,0,0,0.35);
    --shadow-button: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-modal: 0 12px 40px rgba(0,0,0,0.55);
    
    /* Radii */
    --radius-card: 16px;
    --radius-button: 14px;
    --radius-icon: 12px;
    --radius-pill: 999px;
    
    /* Transitions */
    --transition-hover: all 180ms ease-out;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--bg-section);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

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

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition-hover);
}

.logo:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}

.footer-logo img {
    opacity: 0.9;
    transition: var(--transition-hover);
}

.footer-logo:hover img {
    opacity: 1;
}

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

.header-nav {
    border-bottom: 1px solid var(--border-subtle);
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
}

.nav-list a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-hover);
    position: relative;
}

.nav-list a:hover {
    color: var(--gold-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: 2px;
    background-color: var(--text-body);
    transition: var(--transition-hover);
}

/* ToC Navigation */
.toc-nav {
    background-color: var(--bg-section);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 999;
}

.toc-nav .container {
    overflow: hidden;
}

.toc-list {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.toc-list li {
    flex-shrink: 0;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    transition: var(--transition-hover);
    font-size: 0.9rem;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--gold-primary);
    background-color: rgba(245,197,107,0.1);
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-button);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-hover);
    min-width: 60px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--text-on-gold);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    background: var(--gold-pressed);
    transform: translateY(0);
}

.btn-secondary {
    background: #2A2724;
    color: var(--gold-primary);
    border: 1px solid rgba(245,197,107,0.35);
}

.btn-secondary:hover {
    background: #332F2B;
    border-color: var(--gold-primary);
}

.btn-hero {
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background-color: var(--bg-section);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-body);
    font-weight: 500;
}

.reading-time {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.hero-image {
    text-align: center;
}

.hero-image figure {
    margin-bottom: 20px;
}

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

.fact-checked {
    text-align: center;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.fact-checked span::before {
    content: "✓ ";
    color: var(--gold-primary);
    margin-right: 5px;
}

/* Games Section */
.games-section {
    padding: 60px 0;
    background-color: var(--bg-app);
}

.section-title {
    font-size: 2rem;
    color: var(--text-heading);
    margin-bottom: 40px;
    text-align: center;
}

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

.game-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    aspect-ratio: 4/3;
    min-height: 200px;
}

.game-card__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: var(--transition-hover);
}

.game-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-hover);
}

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

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

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--bg-section);
    padding: 0;
    border-bottom: 1px solid var(--border-subtle);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-body);
    text-decoration: none;
    transition: var(--transition-hover);
}

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

/* Content Sections */
.content-section {
    padding: 60px 0;
    background-color: var(--bg-app);
}

.content-section:nth-child(even) {
    background-color: var(--bg-section);
}

.content-section h2 {
    font-size: 2rem;
    color: var(--text-heading);
    margin-bottom: 30px;
    scroll-margin-top: 120px;
}

.content-section h3 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

.content {
    max-width: 900px;
    margin: 0 auto;
}

.content p {
    margin-bottom: 20px;
    color: var(--text-body);
}

.content ul,
.content ol {
    margin: 20px 0;
    padding-left: 30px;
    color: var(--text-body);
}

.content li {
    margin-bottom: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--bg-card-base);
    border-radius: var(--radius-card);
    overflow: hidden;
}

thead {
    background: var(--bg-card-elevated);
}

th {
    padding: 15px;
    text-align: left;
    color: var(--text-heading);
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
}

td {
    padding: 15px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-subtle);
}

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

tbody tr:hover {
    background-color: var(--bg-card-elevated);
}

/* Author Section */
.author-section {
    padding: 60px 0;
    background-color: var(--bg-section);
}

.author-content {
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: var(--gradient-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
}

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

.author-info h3 {
    color: var(--text-heading);
    margin-bottom: 10px;
}

.author-info p {
    color: var(--text-body);
    margin-bottom: 10px;
}

.author-update {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: var(--bg-app);
}

.faq-section details {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-card-base);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
}

.faq-section summary {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

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

.faq-section summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    color: var(--gold-primary);
    transition: transform 0.3s;
}

.faq-section details[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-section details p {
    margin-top: 15px;
    color: var(--text-body);
}

/* Footer */
footer {
    background-color: var(--bg-section);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-subtle);
}

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

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

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

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

.footer-nav a {
    color: var(--text-body);
    text-decoration: none;
    transition: var(--transition-hover);
}

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

.footer-payments h3 {
    color: var(--text-heading);
    margin-bottom: 15px;
    font-size: 1rem;
}

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

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

.footer-gambleaware {
    text-align: center;
}

.footer-gambleaware img {
    opacity: 0.7;
    transition: var(--transition-hover);
}

.footer-gambleaware img:hover {
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-button);
    color: var(--text-on-gold);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    z-index: 1000;
    transition: var(--transition-hover);
}

.back-to-top:hover {
    background: var(--gold-hover);
    transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-top__content {
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
    }
    
    .logo {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .logo img {
        height: 32px;
        width: auto;
        max-width: 120px;
    }
    
    .header-ctas {
        width: auto;
        margin-top: 0;
        justify-content: flex-end;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .header-ctas .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        min-width: auto;
        white-space: nowrap;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-section);
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image figure {
        order: 2;
        margin-bottom: 0;
    }
    
    .btn-hero {
        order: 1;
        margin-top: 0;
        margin-bottom: 20px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        overflow-x: auto;
        display: flex;
        gap: 20px;
        padding-bottom: 10px;
    }
    
    .game-card {
        min-width: 180px;
        min-height: 135px;
        flex-shrink: 0;
        aspect-ratio: 4/3;
    }
    
    .author-content {
        flex-direction: column;
        text-align: center;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

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

.bonus-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    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 {
    background: var(--gradient-card);
    border-radius: var(--radius-card);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bonus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: var(--border-active);
}

.bonus-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-button);
    color: var(--text-on-gold);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bonus-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 12px 0;
    padding-right: 80px;
}

.bonus-desc {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

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

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--icon-action);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-icon);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--bg-card-base);
    border-color: var(--border-active);
    color: var(--gold-primary);
}

.slider-prev:disabled,
.slider-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .bonus-slider {
        padding: 0;
    }
    
    .bonus-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .bonus-card {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    .slider-prev,
    .slider-next {
        display: none;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 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: 0;
}

/* Print Styles */
@media print {
    header,
    footer,
    .back-to-top,
    .toc-nav {
        display: none;
    }
}

