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

:root {
    /* Colors */
    --navy-deep: #062956;
    --navy-mid: #0A395D;
    --blue-primary: #0D4B93;
    --blue-secondary: #10437B;
    --blue-muted: #5D7FA6;
    --orange-primary: #E65826;
    --orange-secondary: #CC7239;
    --green-accent: #6EDC8C;
    --yellow-accent: #F2C94C;
    --white: #FFFFFF;
    --white-muted: #D2C2AB;
    --gray-light: #BBCACF;
    --black: #000000;
    
    /* Typography */
    --text-primary: #FFFFFF;
    --text-secondary: #BBCACF;
    --text-muted: #5D7FA6;
    
    /* Spacing */
    --container-max-width: 1000px;
    --section-padding: 4rem 1rem;
    
    /* Border Radius */
    --radius-card: 12px;
    --radius-button: 24px;
    --radius-icon: 16px;
    --radius-badge: 10px;
    
    /* Shadows */
    --shadow-card: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-button: 0 2px 6px rgba(0,0,0,0.25);
    --shadow-floating: 0 8px 24px rgba(0,0,0,0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #062956 0%, #0D4B93 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
header {
    background: var(--navy-deep);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo {
    display: flex;
    align-items: center;
}

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

.header-ctas {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.header-ctas .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: auto;
    height: auto;
    line-height: 1.4;
}

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

.main-nav {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

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

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease-out;
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--white);
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

/* Table of Contents */
.toc-wrapper {
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.1);
    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: 1rem;
    padding: 0.75rem 0;
    white-space: nowrap;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-badge);
    transition: all 0.15s ease-out;
    display: inline-block;
    font-size: 0.9rem;
}

.toc-list a:hover,
.toc-list a:focus {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

.toc-list a.active {
    color: var(--white);
    background: var(--blue-primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-button);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 150ms ease-out, transform 150ms ease-out;
    min-width: 60px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--orange-primary);
    color: var(--white);
    box-shadow: var(--shadow-button);
}

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

.btn-primary:active {
    background: #B94F24;
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

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

.btn-primary:disabled {
    background: #7A7A7A;
    color: #CFCFCF;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--blue-secondary);
    color: var(--white);
    box-shadow: var(--shadow-button);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
#hero {
    padding: var(--section-padding);
}

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

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-lead {
    margin-bottom: 1.5rem;
}

.hero-lead p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.reading-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.reading-time-label {
    margin-right: 0.5rem;
}

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

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

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

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

/* Games Section */
#games {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #0A395D 0%, #10437B 100%);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    background: linear-gradient(180deg, #0A395D 0%, #10437B 100%);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    transition: transform 150ms ease-out;
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.game-card h3 {
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.game-play-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
    transition: all 0.3s ease-out;
    width: calc(100% - 2rem);
}

.game-card:hover .game-play-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Content Sections */
section[id^="introduction"],
section[id^="official"],
section[id^="how-the"],
section[id^="games-live"],
section[id^="creating"],
section[id^="deposits"],
section[id^="payments"],
section[id^="using"],
section[id^="final"] {
    padding: var(--section-padding);
}

section[id^="introduction"] h2,
section[id^="official"] h2,
section[id^="how-the"] h2,
section[id^="games-live"] h2,
section[id^="creating"] h2,
section[id^="deposits"] h2,
section[id^="payments"] h2,
section[id^="using"] h2,
section[id^="final"] h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.figure-centered {
    margin: 2rem 0;
    text-align: center;
}

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

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

.content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.content ul,
.content ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.content li {
    margin-bottom: 0.5rem;
}

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

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

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

.bonus-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    background: linear-gradient(180deg, #0A395D 0%, #10437B 100%);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    scroll-snap-align: start;
}

.bonus-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

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

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--orange-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 150ms ease-out;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

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

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

.slider-prev::before {
    content: '←';
    font-size: 1.5rem;
}

.slider-next::before {
    content: '→';
    font-size: 1.5rem;
}

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

.pros-col,
.cons-col {
    background: linear-gradient(180deg, #0A395D 0%, #10437B 100%);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

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

.pros-list li,
.cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pros-list li:last-child,
.cons-list li:last-child {
    margin-bottom: 0;
}

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

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

.step-card {
    background: linear-gradient(180deg, #0A395D 0%, #10437B 100%);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 1rem;
    position: relative;
}

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

.step-body {
    flex: 1;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.lead {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(180deg, #0A395D 0%, #10437B 100%);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

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

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

td {
    padding: 1rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,0.1);
}

tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Author Section */
#author {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #0A395D 0%, #10437B 100%);
}

.author-block {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(180deg, #0A395D 0%, #10437B 100%);
    padding: 2rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

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

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

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

/* FAQ Section */
#faq {
    padding: var(--section-padding);
}

#faq h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.faq-list {
    margin-top: 2rem;
}

details {
    background: linear-gradient(180deg, #0A395D 0%, #10437B 100%);
    border-radius: var(--radius-card);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

summary {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: background-color 0.15s ease-out;
}

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

summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: rotate(45deg);
}

summary:hover,
summary:focus {
    background: rgba(255,255,255,0.05);
    outline: 2px solid var(--yellow-accent);
    outline-offset: -2px;
}

details p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--navy-deep);
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

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

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

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.15s ease-out;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--white);
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

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

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

.payment-icon {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-badge);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-gambleaware img {
    max-width: 120px;
    height: auto;
}

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

/* Breadcrumbs */
.breadcrumb {
    padding: 1rem 0;
    background: rgba(255,255,255,0.05);
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

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

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease-out;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    color: var(--white);
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--orange-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-floating);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background-color 150ms ease-out, transform 150ms ease-out;
}

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

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .bonus-slider {
        padding: 0 2.5rem;
    }
    
    .bonus-card {
        flex: 0 0 85%;
        min-width: 250px;
    }
    
    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .step-index {
        margin: 0 auto;
    }
    .header-top-content {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .header-ctas {
        order: 0;
        width: auto;
        margin-top: 0;
        justify-content: flex-end;
        flex-shrink: 0;
    }
    
    .header-ctas .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .header-bottom {
        padding: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        padding: 0.25rem;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
        gap: 0.25rem;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list a {
        display: block;
        padding: 0.5rem 0.75rem;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius-badge);
        font-size: 0.875rem;
    }
    
    #hero {
        padding: 2rem 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-image-cta {
        flex-direction: column;
    }
    
    .hero-image-cta figure {
        order: 1;
    }
    
    .hero-image-cta button {
        order: -1;
        margin-bottom: 0;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .game-card {
        scroll-snap-align: start;
        min-width: 150px;
    }
    
    .game-play-btn {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        opacity: 1;
        width: calc(100% - 2rem);
    }
    
    .game-card:hover .game-play-btn {
        transform: translateX(-50%);
    }
    
    .author-block {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    section[id^="introduction"] h2,
    section[id^="official"] h2,
    section[id^="how-the"] h2,
    section[id^="games-live"] h2,
    section[id^="creating"] h2,
    section[id^="deposits"] h2,
    section[id^="payments"] h2,
    section[id^="using"] h2,
    section[id^="final"] h2 {
        font-size: 1.5rem;
    }
    
    .table-wrapper {
        margin: 1rem -1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th,
    td {
        padding: 0.75rem 0.5rem;
    }
}

/* Table to Cards on Mobile */
@media (max-width: 768px) {
    .table-wrapper table,
    .table-wrapper thead,
    .table-wrapper tbody,
    .table-wrapper th,
    .table-wrapper td,
    .table-wrapper tr {
        display: block;
    }
    
    .table-wrapper thead {
        display: none;
    }
    
    .table-wrapper tr {
        margin-bottom: 1rem;
        background: linear-gradient(180deg, #0A395D 0%, #10437B 100%);
        border-radius: var(--radius-card);
        padding: 1rem;
        box-shadow: var(--shadow-card);
    }
    
    .table-wrapper td {
        border: none;
        padding: 0.5rem 0;
        text-align: left;
    }
    
    .table-wrapper td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-primary);
        display: inline-block;
        min-width: 120px;
    }
}

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

/* Focus Styles */
a:focus,
button:focus,
summary:focus {
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

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