/* Shared Liftoff-style layer for long-form guide / blog article pages */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    background: #f8fafc;
    color: #334155;
}

.igaming-guide-section,
.guide-section,
.kwai-strategy-section,
.igaming-playbook-section,
.landing-guide-section,
.kwai-pixel-section,
.kwai-troubleshooting-section,
.kwai-ad-guide-section,
.kwai-creative-guide-section,
.ad-rejection-guide-section {
    padding: 3.5rem 0 4.5rem;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 48%, #f8fafc 100%);
}

.guide-content {
    font-family: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    border-radius: 16px;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.06),
        0 12px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.92);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.main-heading {
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #ffc107;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.section-heading,
.rule-heading,
.day-heading {
    color: #0369a1;
    margin-top: 2.35rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #dbeafe;
    line-height: 1.3;
}

.subsection-heading,
.section-subheading {
    color: #1e293b;
}

.guide-content .content-block p,
.guide-content .content-block li {
    color: #334155;
}

.guide-content .content-block a {
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-content .content-block a:hover {
    color: #0c4a6e;
}

.strategy-box,
.tip-box,
.success-box,
.warning-box {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.data-table,
.comparison-table {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.data-table th,
.comparison-table th {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
}

.data-table td,
.comparison-table td {
    color: #334155;
}

.stat-card {
    border-radius: 12px;
    border-color: #dbeafe;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.faq-item {
    border-color: #dbeafe;
}

.back-btn {
    color: #0f172a;
    font-weight: 700;
}

.back-btn:hover {
    color: #0369a1;
}

.cta-button {
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

/* Unified contact CTA style for long-form guides */
a[href="contact.html"].cta-button,
a[href="contact.html"].btn.btn-warning.btn-lg {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    gap: 0.5rem !important;
    padding: 0.95rem 1.8rem !important;
    border-radius: 14px !important;
    border: 1px solid rgba(245, 158, 11, 0.42) !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #fff !important;
    font-size: clamp(1rem, 1.1vw, 1.22rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    box-shadow:
        0 10px 24px rgba(217, 119, 6, 0.32),
        0 2px 8px rgba(15, 23, 42, 0.12) !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease !important;
}

a[href="contact.html"].cta-button i,
a[href="contact.html"].btn.btn-warning.btn-lg i {
    font-size: 0.95em;
}

a[href="contact.html"].cta-button:hover,
a[href="contact.html"].btn.btn-warning.btn-lg:hover {
    color: #fff !important;
    filter: brightness(1.02) !important;
    transform: translateY(-1px) !important;
    box-shadow:
        0 12px 28px rgba(217, 119, 6, 0.38),
        0 3px 10px rgba(15, 23, 42, 0.14) !important;
}

a[href="contact.html"].cta-button:focus-visible,
a[href="contact.html"].btn.btn-warning.btn-lg:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.35) !important;
    outline-offset: 2px !important;
}

.article-progress {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10000;
    pointer-events: none;
    background: rgba(226, 232, 240, 0.65);
}

.article-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, #0284c7, #0ea5e9 40%, #f59e0b);
    transition: transform 0.12s ease-out;
}

.guide-meta {
    margin: 0 0 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
}

.guide-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.35rem;
    font-size: 0.9375rem;
    color: #64748b;
}

.guide-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #475569;
}

.guide-meta-item i {
    color: #0284c7;
    font-size: 0.9rem;
}

.guide-meta-tags-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0.85rem 0 0.45rem;
}

.guide-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-meta-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0369a1;
    border: 1px solid #e2e8f0;
    line-height: 1.3;
}

.guide-toc {
    position: sticky;
    top: 4.75rem;
    z-index: 40;
    margin: 0 0 1.75rem;
    padding: 0.85rem 1rem 0.95rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.guide-toc-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.guide-toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-toc-list a {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0369a1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-toc-list a:hover {
    background: #e0f2fe;
    color: #0c4a6e;
    transform: translateY(-1px);
}

.guide-toc-list a.is-active {
    background: linear-gradient(135deg, #ffc107 0%, #f59e0b 100%);
    color: #0f172a;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.guide-content .content-image,
.guide-content img.content-image {
    width: min(100%, 680px);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .igaming-guide-section,
    .guide-section,
    .kwai-strategy-section,
    .igaming-playbook-section,
    .landing-guide-section,
    .kwai-pixel-section,
    .kwai-troubleshooting-section,
    .kwai-ad-guide-section,
    .kwai-creative-guide-section,
    .ad-rejection-guide-section {
        padding: 2.2rem 0 3rem;
    }

    .guide-content {
        border-radius: 12px;
    }

    .main-heading {
        font-size: clamp(1.5rem, 7vw, 1.95rem);
    }

    .section-heading,
    .rule-heading,
    .day-heading {
        font-size: 1.15rem;
    }

    .article-progress {
        top: 64px;
    }

    a[href="contact.html"].cta-button,
    a[href="contact.html"].btn.btn-warning.btn-lg {
        width: 100%;
        padding: 0.9rem 1.1rem !important;
        font-size: 1rem !important;
    }

    .guide-toc {
        top: 4rem;
    }
}
