/* gamelicense.info — Documentation Clean Slate */
/* Palette: #f8f9fa, #ffffff, #1a1a1a, #2563eb, #eff6ff, #f59e0b, #fffbeb, #1d4ed8, #d1d5db */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8f9fa;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
}

/* ===== HERO / SEARCH ZONE ===== */
.hero {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 4rem 1.5rem 3rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    text-align: center;
    max-width: 720px;
    width: 100%;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: #ffffff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.breadcrumb {
    font-size: 0.8rem;
    color: #9ca3af;
    letter-spacing: 0.01em;
}

/* ===== LAYOUT ===== */
.layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    display: flex;
    gap: 3rem;
}

.content {
    flex: 1;
    min-width: 0;
}

/* ===== ARTICLE SECTIONS ===== */
.article-section {
    margin-bottom: 2.5rem;
}

.heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
}

.heading.sub {
    font-size: 1.15rem;
    margin-top: 2rem;
    color: #1a1a1a;
}

.body-text {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.legal-ref {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.code {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85em;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 1px 5px;
    border-radius: 3px;
}

/* ===== CALLOUT BOXES ===== */
.callout {
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 1.25rem 0;
}

.callout.info {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
}

.callout.warning {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.callout-icon {
    flex-shrink: 0;
}

.callout-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.callout.info .callout-label {
    color: #2563eb;
}

.callout.warning .callout-label {
    color: #b45309;
}

.callout-text {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.65;
}

/* ===== LICENSE TYPES ===== */
.license-type {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.license-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

/* ===== TERRITORY CARDS ===== */
.territory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.territory-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
}

.territory-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.territory-body {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
    margin: 1.25rem 0;
}

.process-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 2px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

/* ===== REGULATION BLOCKS ===== */
.regulation-block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.reg-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.reg-code {
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    font-size: 0.85rem;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.reg-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.reg-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.reg-detail-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.reg-label {
    color: #6b7280;
    font-weight: 700;
    min-width: 100px;
}

/* ===== COMPLIANCE TABLE ===== */
.compliance-table {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.compliance-row {
    display: grid;
    grid-template-columns: 140px 1fr 120px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.85rem;
    align-items: start;
}

.compliance-row:last-child {
    border-bottom: none;
}

.compliance-row.header {
    background: #f8f9fa;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

.comp-mechanic {
    color: #1a1a1a;
    font-weight: 600;
}

.comp-requirement {
    color: #374151;
}

.comp-ref {
    text-align: right;
    color: #6b7280;
}

/* ===== CONTENT LIST ===== */
.content-list {
    margin: 0.75rem 0 1rem 1.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.content-list li {
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 24px;
}

.toc {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.toc-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.toc-list {
    list-style: none;
}

.toc-item {
    display: block;
    font-size: 0.82rem;
    padding: 0.35rem 0.5rem;
    color: #6b7280;
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.toc-item.indent {
    padding-left: 1.25rem;
    font-size: 0.78rem;
}

.toc-item:hover {
    color: #2563eb;
    background: #eff6ff;
}

.toc-item.active {
    color: #2563eb;
    font-weight: 700;
    border-left-color: #2563eb;
    background: #eff6ff;
}

.ref-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.ref-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.ref-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.ref-row:last-child {
    border-bottom: none;
}

.ref-label {
    color: #6b7280;
}

.ref-value {
    color: #1a1a1a;
    font-weight: 600;
}

.status-current {
    color: #059669;
    font-weight: 700;
    font-size: 0.75rem;
    background: #ecfdf5;
    padding: 1px 8px;
    border-radius: 10px;
}

.related-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
}

.related-list {
    list-style: none;
}

.related-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-link {
    font-size: 0.82rem;
    color: #1d4ed8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.related-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ===== RESOURCES ===== */
.resources {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.resources .heading {
    margin-bottom: 1.5rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

.resource-item:hover {
    background: #ffffff;
}

.res-cat {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    font-weight: 600;
}

.res-link {
    font-size: 0.88rem;
    color: #1d4ed8;
    flex: 1;
    margin-left: 1rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.res-link:hover {
    color: #2563eb;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a1a1a;
}

.footer-sep {
    color: #d1d5db;
}

.footer-desc {
    font-size: 0.8rem;
    color: #9ca3af;
}

.footer-updated {
    font-size: 0.78rem;
    color: #9ca3af;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        order: -1;
    }

    .toc {
        margin-bottom: 1.5rem;
    }

    .territory-grid {
        grid-template-columns: 1fr;
    }

    .compliance-row {
        grid-template-columns: 100px 1fr 80px;
        font-size: 0.78rem;
    }

    .hero {
        min-height: 50vh;
        padding: 3rem 1rem 2rem;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-sep {
        display: none;
    }

    .process-step {
        flex-direction: column;
        gap: 0.5rem;
    }

    .reg-header {
        flex-direction: column;
        gap: 0.25rem;
    }
}
