/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-surface: #0C2D4F;
    --secondary-surface: #0F3A63;
    --accent-surface: #123F6E;
    --app-bg-start: #0B2A4A;
    --app-bg-end: #0E355D;
    --card-bg: #123F6E;
    --card-shadow: rgba(0, 0, 0, 0.35);
    --button-primary-start: #FF7A1A;
    --button-primary-end: #FF4E1A;
    --button-primary-hover-start: #FF8C3A;
    --button-primary-hover-end: #FF5F2A;
    --button-primary-active-start: #E66414;
    --button-primary-active-end: #E64614;
    --button-secondary: #2D8CFF;
    --button-secondary-hover: #1F74E0;
    --text-headline: #FFFFFF;
    --text-section: #8EC7FF;
    --text-body: #D4E6F7;
    --text-muted: rgba(212, 230, 247, 0.6);
    --accent-positive: #3DFF8E;
    --accent-negative: #FF5C5C;
    --focus-outline: #2D8CFF;
    --container-max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, var(--app-bg-start) 0%, var(--app-bg-end) 100%);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary-surface);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-headline);
    transition: all 0.3s;
}

.header-bottom {
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 15px 0;
    justify-content: center;
}

.main-nav a {
    color: var(--text-headline);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--text-section);
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Table of Contents */
.toc-wrapper {
    background-color: var(--secondary-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.toc {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.toc::-webkit-scrollbar {
    display: none;
}

.toc a {
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.toc a:hover,
.toc a:focus {
    color: var(--text-headline);
    background-color: rgba(255, 255, 255, 0.1);
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

.toc a.active {
    color: var(--text-section);
    background-color: rgba(142, 199, 255, 0.15);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 60px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    color: var(--text-headline);
}

.btn-primary {
    background: linear-gradient(135deg, var(--button-primary-start) 0%, var(--button-primary-end) 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    color: var(--text-headline);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--button-primary-hover-start) 0%, var(--button-primary-hover-end) 100%);
}

.btn-primary:active {
    background: linear-gradient(135deg, var(--button-primary-active-start) 0%, var(--button-primary-active-end) 100%);
}

.btn-primary:focus {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: var(--button-secondary);
    color: var(--text-headline);
}

.btn-secondary:hover {
    background-color: var(--button-secondary-hover);
}

.btn-secondary:focus {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Hero Section */
#hero {
    padding: 60px 0 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.hero-text h1 {
    color: var(--text-headline);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-lead p {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-body);
}

.reading-time {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.reading-time__label {
    margin-right: 5px;
}

.hero-image {
    text-align: center;
}

.hero-image figure {
    margin-bottom: 20px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
}

.btn-hero {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.fact-checked {
    text-align: center;
    margin-top: 30px;
    padding: 10px;
    color: var(--text-muted);
    font-size: 14px;
}


/* Content Sections */
section[id^="mostbet"],
section[id^="ways"],
section[id^="android"],
section[id^="installing"],
section[id^="opening"],
section[id^="account"],
section[id^="mobile"],
section[id^="using"],
section[id^="final"],
section[id^="faq"] {
    padding: 60px 0;
}

section h2 {
    color: var(--text-section);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

section h3 {
    color: var(--text-headline);
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

section p {
    margin-bottom: 15px;
    color: var(--text-body);
    font-size: 16px;
}

section ul,
section ol {
    margin-left: 30px;
    margin-bottom: 20px;
    color: var(--text-body);
}

section li {
    margin-bottom: 10px;
}

section a {
    color: var(--text-section);
    text-decoration: underline;
}

section a:hover,
section a:focus {
    color: var(--text-headline);
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

.section-image {
    margin: 30px 0;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
}

.content {
    margin-top: 20px;
}

/* Step-by-Step Section */
.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.step-card {
    background-color: var(--card-bg);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 14px var(--card-shadow);
    display: flex;
    gap: 15px;
    align-items: start;
}

.step-index {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--button-primary-start) 0%, var(--button-primary-end) 100%);
    color: var(--text-headline);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-body {
    flex: 1;
}

.step-body p {
    margin: 0;
    color: var(--text-body);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 14px var(--card-shadow);
}

thead {
    background-color: var(--secondary-surface);
}

th {
    padding: 15px;
    text-align: left;
    color: var(--text-headline);
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

td {
    padding: 15px;
    color: var(--text-body);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Author Section */
#author {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.author-block {
    display: flex;
    gap: 20px;
    align-items: start;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 6px 14px var(--card-shadow);
}

.author-avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    color: var(--text-headline);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.author-bio {
    color: var(--text-body);
    margin-bottom: 10px;
}

.author-updated {
    color: var(--text-muted);
    font-size: 14px;
}

/* FAQ Section */
#faq {
    padding: 60px 0;
}

details {
    background-color: var(--card-bg);
    border-radius: 14px;
    margin-bottom: 15px;
    box-shadow: 0 6px 14px var(--card-shadow);
    overflow: hidden;
}

summary {
    padding: 20px;
    cursor: pointer;
    color: var(--text-headline);
    font-weight: 600;
    font-size: 18px;
    list-style: none;
    position: relative;
    padding-right: 50px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--text-section);
    transition: transform 0.3s;
}

details[open] summary::after {
    content: '−';
}

summary:hover,
summary:focus {
    color: var(--text-section);
    outline: 2px solid var(--focus-outline);
    outline-offset: -2px;
}

details[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

details p {
    padding: 0 20px 20px;
    color: var(--text-body);
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--primary-surface);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--text-section);
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

.footer-payments {
    margin-top: 20px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-icon {
    background-color: var(--card-bg);
    padding: 8px;
    border-radius: 8px;
}

.footer-gambleaware {
    margin-top: 20px;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--button-primary-start) 0%, var(--button-primary-end) 100%);
    border: none;
    color: var(--text-headline);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: transform 0.3s;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top:focus {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Utility Classes */
.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;
}

.lead {
    font-size: 18px;
    color: var(--text-body);
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-top__content {
        flex-wrap: nowrap;
    }

    .header-top__content {
        justify-content: space-between;
    }

    .header-cta {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

    .header-cta .btn {
        padding: 10px 14px;
        font-size: 13px;
        min-width: auto;
        white-space: nowrap;
    }

    .logo img {
        height: 35px;
    }

    .burger-menu {
        display: none !important;
    }

    .header-bottom {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 28px;
    }


    .steps {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .author-block {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    section h2 {
        font-size: 24px;
    }

    section h3 {
        font-size: 20px;
    }
}

/* Table Card Transformation for Mobile */
@media (max-width: 768px) {
    .table-card-wrapper {
        display: block;
    }

    .table-card {
        background-color: var(--card-bg);
        border-radius: 14px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 6px 14px var(--card-shadow);
    }

    .table-card-row {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .table-card-row:last-child {
        border-bottom: none;
    }

    .table-card-label {
        font-weight: 600;
        color: var(--text-headline);
    }

    .table-card-value {
        color: var(--text-body);
        text-align: right;
    }
}
