/* SureBetUK shared design system — used by calculator, guides & 404 pages.
   The homepage (index.html) keeps its own inlined styles. */

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

:root {
    --green: #00c853;
    --green-dark: #00a844;
    --dark: #0a0f1a;
    --card: #131a2b;
    --card-border: #1e2a42;
    --text: #e4e8f1;
    --text-muted: #8892a8;
    --gold: #ffd740;
    --red: #ff5252;
    --blue: #448aff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--green); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }

/* --- NAV --- */
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    gap: 1rem;
    position: relative;
}
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: 0; padding: 0.4rem;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav .logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.site-nav .logo span { color: var(--green); }
.site-nav .nav-links { display: flex; align-items: center; gap: 1.2rem; }
.site-nav .nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.site-nav .nav-links a:hover { color: var(--text); }
.site-nav .nav-cta {
    background: var(--green);
    color: #04240f;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}
.site-nav .nav-cta:hover { background: var(--green-dark); }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--green); color: #04240f;
    padding: 0.85rem 1.6rem; border-radius: 12px;
    font-size: 1rem; font-weight: 800; text-decoration: none; cursor: pointer;
    border: 2px solid var(--green);
    transition: transform .15s, background .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); }
.btn.secondary { background: transparent; color: var(--green); }
.btn.secondary:hover { background: rgba(0,200,83,0.12); transform: translateY(-2px); }

/* --- CARDS / SECTIONS --- */
.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
}
.section { padding: 2.5rem 0; }
.eyebrow {
    display: inline-block; color: var(--green); font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.6rem;
}

/* --- PAGE HEADER --- */
.page-head { text-align: center; padding: 2rem 1.5rem 1rem; max-width: 760px; margin: 0 auto; }
.page-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 900; line-height: 1.15; margin-bottom: 0.8rem; }
.page-head h1 .hl { color: var(--green); }
.page-head p { color: var(--text-muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto; }

/* --- FORM CONTROLS --- */
label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.35rem; }
input[type="number"], input[type="text"], select {
    width: 100%;
    background: #0c1220;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0.7rem 0.85rem;
    transition: border-color .15s;
}
input:focus, select:focus { outline: none; border-color: var(--green); }
input[type="range"] { width: 100%; accent-color: var(--green); height: 28px; }

/* --- FOOTER --- */
.site-footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--card-border);
    margin-top: 2rem;
}
.site-footer a { color: var(--text-muted); }
.site-footer .foot-links { margin-bottom: 0.8rem; display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.site-footer .foot-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.site-footer .foot-links a:hover { color: var(--green); }

/* --- ARTICLE (guides) --- */
.article { max-width: 740px; margin: 0 auto; padding: 1rem 1.5rem 2rem; }
.article h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 0.8rem; }
.article h3 { font-size: 1.15rem; font-weight: 700; margin: 1.4rem 0 0.5rem; }
.article p { color: #c9d2e3; margin-bottom: 1rem; }
.article ul, .article ol { color: #c9d2e3; margin: 0 0 1rem 1.3rem; }
.article li { margin-bottom: 0.5rem; }
.article strong { color: #fff; }
.article .lead { font-size: 1.15rem; color: var(--text); }
.article blockquote {
    border-left: 3px solid var(--green);
    background: rgba(0,200,83,0.06);
    padding: 0.9rem 1.2rem; margin: 1.4rem 0; border-radius: 0 10px 10px 0;
    color: var(--text);
}
.byline { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.byline .dot { color: var(--card-border); }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

/* inline CTA used inside guides */
.inline-cta {
    background: linear-gradient(135deg, #0d2a1a 0%, #0a1f3a 100%);
    border: 1px solid var(--green);
    border-radius: 16px; padding: 1.5rem; margin: 2rem 0; text-align: center;
}
.inline-cta h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.inline-cta p { color: var(--text-muted); margin-bottom: 1rem; }

/* card grid for guide hub */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.guide-tile {
    background: var(--card); border: 1px solid var(--card-border); border-radius: 16px;
    padding: 1.4rem; text-decoration: none; color: var(--text); display: block; transition: border-color .15s, transform .15s;
}
.guide-tile:hover { border-color: var(--green); transform: translateY(-3px); }
.guide-tile h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: #fff; }
.guide-tile p { color: var(--text-muted); font-size: 0.9rem; }
.guide-tile .more { color: var(--green); font-weight: 700; font-size: 0.88rem; margin-top: 0.7rem; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn:hover, .guide-tile:hover { transform: none; }
}

@media (max-width: 600px) {
    .site-nav { padding: 0.8rem 1rem; }
    .nav-toggle { display: flex; }
    .site-nav .nav-links {
        position: absolute; top: 100%; right: 1rem; left: 1rem;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--card); border: 1px solid var(--card-border);
        border-radius: 14px; padding: 0.5rem; margin-top: 0.4rem;
        display: none; z-index: 60; box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    }
    .site-nav .nav-links.open { display: flex; }
    .site-nav .nav-links a {
        padding: 0.85rem 0.7rem; font-size: 1rem; color: var(--text);
        border-bottom: 1px solid var(--card-border);
    }
    .site-nav .nav-links a:last-child { border-bottom: none; }
    .site-nav .nav-links .nav-cta { text-align: center; margin: 0.45rem 0.2rem 0.2rem; padding: 0.85rem; color: #04240f; }
    .wrap { padding: 0 1rem; }
}
