/* =====================================================================
   Keno Online Ethiopia — site stylesheet
   Palette: emerald + gold on deep-green dark
   ===================================================================== */

:root {
    /* Backgrounds */
    --bg: #06140f;
    --bg-2: #0a1f17;
    --surface: #0e261c;
    --surface-2: #133024;
    --surface-3: #18402f;

    /* Emerald */
    --emerald: #10b981;
    --emerald-bright: #34d399;
    --emerald-deep: #047857;

    /* Gold */
    --gold: #e2b13c;
    --gold-bright: #f5cf6a;
    --gold-deep: #b8860b;

    /* Red accent (high-stakes tiles) */
    --red: #ef4444;
    --red-deep: #b91c1c;

    /* Text */
    --text: #ecfdf5;
    --text-soft: #b6d8c9;
    --text-muted: #6f9384;

    /* Lines */
    --line: rgba(52, 211, 153, 0.16);
    --line-strong: rgba(52, 211, 153, 0.32);

    /* Shape */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.35);

    --wrap: 1200px;
    --pad: 20px;
    --content-img-w: 750px;

    --font-head: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --t: 0.25s ease;

    --header-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(16, 185, 129, 0.12), transparent 60%),
        radial-gradient(900px 500px at 0% 0%, rgba(226, 177, 60, 0.08), transparent 55%),
        var(--bg);
    line-height: 1.65;
    overflow-x: clip;
}

#main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: var(--emerald-bright); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 2000;
    background: var(--gold); color: #1a1200; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
    padding: 11px 20px; border-radius: var(--radius-pill);
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--primary {
    background: linear-gradient(180deg, var(--emerald-bright), var(--emerald));
    color: #04261a; box-shadow: 0 8px 24px rgba(16, 185, 129, 0.28);
}
.btn--primary:hover { color: #04261a; transform: translateY(-2px); background: linear-gradient(180deg, #4be0a8, var(--emerald-bright)); box-shadow: 0 12px 30px rgba(16, 185, 129, 0.38); }
.btn--ghost {
    background: rgba(226, 177, 60, 0.06); color: var(--text); border-color: var(--gold);
}
.btn--ghost:hover { background: rgba(226, 177, 60, 0.16); color: var(--gold-bright); transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   Keno balls
   --------------------------------------------------------------------- */
.kball {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #03150e;
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.35), inset 0 4px 6px rgba(255, 255, 255, 0.45), 0 6px 14px rgba(0, 0, 0, 0.4);
    position: relative;
}
.kball--sm { width: 34px; height: 34px; font-size: 0.8rem; }
.kball--emerald { background: radial-gradient(circle at 32% 28%, var(--emerald-bright), var(--emerald-deep)); }
.kball--gold    { background: radial-gradient(circle at 32% 28%, var(--gold-bright), var(--gold-deep)); }
.kball--red     { background: radial-gradient(circle at 32% 28%, #fca5a5, var(--red-deep)); color: #fff; }

/* ---------------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------------- */
.site-top {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(6, 20, 15, 0.96);
    border-bottom: 1px solid var(--line);
}
.site-top__inner {
    position: relative; display: flex; align-items: center; gap: 20px;
    min-height: var(--header-h);
}
.site-header { flex-shrink: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; }
.brand__ball {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 32% 28%, var(--gold-bright), var(--gold-deep));
    color: #1a1200; font-size: 1.1rem; font-weight: 800;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.3), inset 0 3px 5px rgba(255,255,255,0.5);
}
.brand__text { font-size: 1.15rem; letter-spacing: -0.01em; }
.brand__p1 { color: var(--emerald-bright); }
.brand__p2 { color: var(--gold); }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1; margin-left: 0; }
.nav__list {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 2px; list-style: none;
}
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; cursor: pointer; font: inherit;
    color: var(--text-soft); font-weight: 500; font-size: 0.92rem;
    padding: 9px 12px; border-radius: var(--radius-sm); transition: color var(--t), background var(--t);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); background: rgba(52, 211, 153, 0.08); }
.nav__caret { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform var(--t); }
.nav__item--has-sub.is-open .nav__caret { transform: rotate(-135deg); margin-top: 2px; }

.nav__sub {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
    background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 0; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--t); z-index: 1200;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sublink { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-soft); font-size: 0.9rem; }
.nav__sublink:hover, .nav__sublink.is-active { background: rgba(52, 211, 153, 0.1); color: var(--text); }

.nav__cta { display: flex; gap: 8px; margin-left: 10px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------------------- */
.crumbs { border-bottom: 1px solid var(--line); background: rgba(10, 31, 23, 0.4); }
.crumbs__list { display: flex; gap: 8px; list-style: none; padding: 12px 0; font-size: 0.85rem; flex-wrap: wrap; }
.crumbs__item { color: var(--text-muted); }
.crumbs__item:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--text-muted); }
.crumbs__item--current span { color: var(--gold); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(600px 300px at 75% 30%, rgba(16,185,129,0.18), transparent 70%); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.hero__title { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -0.02em; }
.hero__title .hl { color: var(--emerald-bright); }
.hero__intro { margin: 18px 0 26px; color: var(--text-soft); font-size: 1.05rem; line-height: 1.65; max-width: 56ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__media {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--line-strong);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow);
}
.hero__image-placeholder-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__image {
    display: block;
    width: 100%;
    max-width: var(--content-img-w);
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}

.content-figure {
    width: 100%;
    max-width: var(--content-img-w);
    margin: 24px auto 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    background: var(--surface-2);
}

.content-figure__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ---------------------------------------------------------------------
   Article / content pages
   --------------------------------------------------------------------- */
.page { padding: 44px 0 60px; }
.page__lead { font-size: 1.15rem; color: var(--text-soft); }
/* .prose shares the element with .wrap, so it inherits the container max-width. */
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 38px 0 14px; color: var(--text); }
.prose h2::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: middle; }
.prose h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--text-soft); }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--text-soft); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose a { text-decoration: none; }
.prose a:hover { text-decoration: none; }

.table-scroll { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll table { width: 100%; border-collapse: collapse; min-width: 480px; }
.table-scroll th, .table-scroll td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table-scroll thead th { background: var(--surface-2); color: var(--text); font-family: var(--font-head); }
.table-scroll tbody tr:hover { background: rgba(52,211,153,0.05); }

/* CTA band injected into content */
.cta-band {
    display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
    border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
    padding: 16px 24px; margin: 30px 0;
}

.content-figure + .cta-band {
    width: 100%;
    max-width: var(--content-img-w);
    margin: 16px auto 28px;
}

/* FAQ */
.faq { margin: 26px 0; max-width: none; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.faq .faq__heading,
.prose .faq .faq__heading { margin: 0; font: inherit; color: inherit; }
.faq__q {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    text-align: left; background: none; border: 0; cursor: pointer;
    font: 600 1.02rem var(--font-head); color: var(--text); padding: 16px 18px;
}
.faq__mark { position: relative; width: 14px; height: 14px; flex: none; }
.faq__mark::before, .faq__mark::after { content: ''; position: absolute; background: var(--gold); inset: 6px 0 auto 0; height: 2px; transition: transform var(--t); }
.faq__mark::after { transform: rotate(90deg); }
.faq__item.is-open .faq__mark::after { transform: rotate(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.faq__a p { padding: 0 18px 16px; color: var(--text-soft); margin: 0; }
.faq__item.is-open .faq__a { max-height: 320px; }

/* Info cards used on some pages */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 26px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { color: var(--text); margin-bottom: 8px; }
.card p { color: var(--text-soft); margin: 0; }

/* ---------------------------------------------------------------------
   Error page
   --------------------------------------------------------------------- */
.error { text-align: center; padding: 90px 0; }
.error__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); color: var(--emerald-bright); line-height: 1; }
.error__title { font-size: 1.6rem; margin: 6px 0 12px; }
.error__msg { color: var(--text-soft); max-width: 46ch; margin: 0 auto 26px; }

/* ---------------------------------------------------------------------
   Badges / chips
   --------------------------------------------------------------------- */
.badges { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.badge { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; padding: 6px 12px; border-radius: var(--radius-sm); }
.badge--age { background: var(--red-deep); color: #fff; border: 1px solid #fca5a5; }
.badge--rg { background: transparent; color: var(--text-muted); border: 1px solid var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.82rem; padding: 7px 13px; border-radius: var(--radius-pill); background: rgba(52,211,153,0.07); border: 1px solid var(--line); color: var(--text-soft); }
.chip:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); margin-top: 30px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 34px; padding: 48px 20px 36px; }
.brand--footer { margin-bottom: 14px; }
.site-footer__about { color: var(--text-muted); font-size: 0.92rem; }
.site-footer__title { font-size: 1rem; color: var(--text); margin-bottom: 14px; }
.site-footer__links { list-style: none; }
.site-footer__links li { margin-bottom: 9px; }
.site-footer__links--cols-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px;
}
.site-footer__links--cols-2 li { margin-bottom: 0; }
.site-footer__links a { color: var(--text-soft); font-size: 0.92rem; }
.site-footer__links a:hover { color: var(--gold-bright); }
.site-footer__bottom { border-top: 1px solid var(--line); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; color: var(--text-muted); font-size: 0.85rem; }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.site-footer__meta a { color: var(--text-soft); }
.site-footer__meta a:hover { color: var(--gold-bright); }
.site-footer__meta-sep { color: var(--text-muted); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__media { max-width: var(--content-img-w); margin-left: auto; margin-right: auto; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-top__inner { z-index: 1002; }
    .burger { display: flex; position: relative; z-index: 1003; flex-shrink: 0; }
    .site-header { flex: 1; min-width: 0; }

    .nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        bottom: 0;
        left: auto;
        width: min(320px, 100vw);
        max-width: 100%;
        box-sizing: border-box;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border-left: 1px solid var(--line-strong);
        padding: 18px;
        margin: 0;
        transform: translateX(100%);
        transition: transform var(--t);
        overflow-x: hidden;
        overflow-y: auto;
        box-shadow: var(--shadow);
        z-index: 1001;
        -webkit-overflow-scrolling: touch;
    }
    .nav.is-open { transform: translateX(0); }

    .nav__list {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
    }
    .nav__link { width: 100%; justify-content: space-between; font-size: 1rem; padding: 13px 12px; }
    .nav__sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--line-strong);
        border-radius: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height var(--t);
    }
  /* Only .is-open expands submenus on mobile (not :hover from desktop rules) */
    .nav__item--has-sub:hover .nav__sub { max-height: 0; }
    .nav__item--has-sub.is-open .nav__sub { max-height: 2000px; padding: 0; }
    .nav__cta {
        flex-shrink: 0;
        width: 100%;
        max-width: 100%;
        margin: 14px 0 0;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        box-sizing: border-box;
    }
    .nav__cta .btn { width: 100%; max-width: 100%; flex: none; box-sizing: border-box; }

    .cta-band,
    .hero__cta {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .cta-band {
        padding: 12px 12px;
    }
    .cta-band .btn,
    .hero__cta .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 10px;
        font-size: clamp(0.7rem, 2.8vw, 0.88rem);
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
}
