/* SportkaSazka.cz – main stylesheet
 * Dříve bylo uvnitř <style amp-custom>; teď žije samostatně,
 * protože jsme odstranili AMP.
 */

:root {
    --yellow: #FEDE35;
    --yellow-dark: #EDC700;
    --navy: #000166;
    --navy-deep: #000141;
    --text: #2A2A2A;
    --muted: #6b6b7a;
    --gray-bg: #FAFAFA;
    --gray-border: #F0F0F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 1, 102, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 1, 102, 0.12);
    --radius: 10px;
}

* { box-sizing: border-box; }

body, html {
    margin: 0;
    font-family: 'Roboto Condensed', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    background: #fff;
}

*:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: var(--yellow);
    padding: 0.5rem 1rem;
    z-index: 20000;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}

a, a:visited {
    color: var(--navy);
    transition: color 0.15s ease;
}
a:hover, a:active {
    color: var(--navy-deep);
}

p {
    font-family: 'Roboto', system-ui, sans-serif;
    font-weight: 300;
}

/* Top navigation */
.hamburger { display: none; }

.top-nav {
    width: 100%;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--yellow);
    position: fixed;
    top: 0;
    left: 0;
    font-size: 0.9rem;
    z-index: 10000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.top-nav .logo {
    font-weight: bold;
    font-size: 1.25rem;
}
.top-nav .left-menu {
    padding-left: 2rem;
    flex: 1;
}
.top-nav .left-menu a {
    margin-right: 2rem;
}
.top-nav .right-menu {
    padding-right: 2rem;
    flex: 1;
    text-align: right;
}
.top-nav a,
.top-nav a:visited,
.top-nav a:hover {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.top-nav a:hover {
    color: var(--navy);
}

/* Sidebar (mobile drawer) – CSS-only via <input type="checkbox"> toggle */
#nav-toggle { display: none; }
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 16rem;
    max-width: 85%;
    height: 100%;
    background-color: var(--yellow);
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    padding-top: 3.25rem;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}
.sidebar a,
.sidebar .close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    height: 3rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.sidebar a:hover { background: rgba(0, 0, 0, 0.05); }
.sidebar .close-btn {
    cursor: pointer;
}
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
}
#nav-toggle:checked ~ .sidebar {
    transform: translateX(0);
}
#nav-toggle:checked ~ .sidebar-backdrop {
    display: block;
}

.main {
    max-width: 960px;
    width: 100%;
    padding: 4rem 1rem 1rem 1rem;
    margin: 0 auto;
}

/* Headings */
h1, h2 {
    margin-top: 3rem;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: -0.01em;
    color: var(--text);
}
h1 { font-size: 2.2rem; line-height: 1.2; }
h1 a, h2 a, h1 a:visited, h2 a:visited { color: var(--navy); }
h1 a:hover, h2 a:hover {
    color: var(--navy);
    text-decoration: underline;
}

h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.subtitle {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: var(--muted);
}
.breadcrumbs a { color: var(--navy); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--muted); }

/* Prev / next date navigation */
.prev-next {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.75rem;
    margin: 2rem 0 1rem 0;
}
.prev-next a {
    flex: 1;
    background: var(--gray-bg);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    text-decoration: none;
    color: var(--navy);
    font-weight: bold;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.prev-next a:hover,
.prev-next a:focus-visible {
    background: var(--yellow);
    border-color: var(--yellow-dark);
    transform: translateY(-1px);
}
.prev-next .next { text-align: right; }
.prev-next small {
    display: block;
    font-weight: normal;
    color: var(--muted);
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
}

/* Hero jackpot section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.hero h1 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.9rem;
}
.hero .lead {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    margin: 0 0 1.5rem 0;
}
.hero-jackpots {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.hero-jackpot {
    flex: 1 1 12rem;
    background: var(--yellow);
    color: var(--navy);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(254, 222, 53, 0.25);
}
.hero-jackpot .label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--navy-deep);
}
.hero-jackpot .value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.1;
    margin-top: 0.35rem;
}
.hero-countdown {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.hero-countdown .unit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    min-width: 4.5rem;
    color: #fff;
}
.hero-countdown .num {
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1;
}
.hero-countdown .lbl {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
}
.hero-cta {
    margin-top: 1.25rem;
}
.hero-cta a {
    display: inline-block;
    background: var(--yellow);
    color: var(--navy);
    padding: 0.85rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(254, 222, 53, 0.35);
}
.hero-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 222, 53, 0.5);
}

/* Quick tools section below hero */
.quick-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.quick-tool {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.quick-tool:hover,
.quick-tool:focus-visible {
    border-color: var(--yellow-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.quick-tool h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.05rem;
    color: var(--navy);
}
.quick-tool p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Results tables */
.vysledky {
    margin-top: 1.5rem;
    border-collapse: collapse;
    font-size: 1.05rem;
    width: 100%;
    text-align: center;
    background-color: var(--gray-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.vysledky thead {
    background-color: var(--navy);
    color: #fff;
    font-weight: bold;
}
.vysledky thead td:first-child {
    text-align: left;
    padding-left: 2rem;
}
.vysledky td {
    padding: 0.8rem;
}
.vysledky tbody {
    border-left: solid 1px var(--gray-border);
    border-right: solid 1px var(--gray-border);
}
.vysledky tbody td {
    border-bottom: solid 1px var(--gray-border);
}
.vysledky tr td:last-child {
    text-align: right;
    padding-right: 2rem;
}
.vysledky tbody tr:hover {
    background: #f3f5fb;
}
.vysledky tfoot {
    background-color: var(--navy);
    color: #fff;
    font-weight: bold;
}
.vysledky tfoot td {
    border-bottom: solid 1px #fff;
    text-align: left;
    padding-left: 2rem;
}
.vysledky tfoot td:last-child {
    padding-right: 2rem;
    text-align: right;
}
.vysledky tfoot td span {
    display: inline-block;
    text-align: left;
    width: 9rem;
}
.vysledky tfoot td span:last-child {
    color: var(--yellow);
    text-align: right;
}

.vysledky.gray thead,
.vysledky.gray tfoot {
    background-color: var(--gray-bg);
    color: var(--navy);
    font-weight: bold;
}
.vysledky.gray tfoot tr,
.vysledky.gray thead tr {
    border: solid 1px var(--navy);
}
.vysledky.gray tbody tr:last-child td {
    border-bottom: solid 1px var(--navy);
}
.vysledky.gray tfoot td {
    border-bottom: solid 1px var(--text);
}
.vysledky.gray tfoot td span:last-child {
    color: var(--navy);
}
.vysledky.gray.uni tbody tr:last-child td {
    border-bottom: none;
}
.vysledky.gray.uni tr td:last-child {
    text-align: center;
    padding-right: 0;
}

/* Small jackpots (legacy) */
.jackpots {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.jackpot {
    flex: 1 1 12rem;
    min-height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background-color: var(--yellow);
    border: solid 1px var(--yellow-dark);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 16px rgba(254, 222, 53, 0.18);
}
.jackpot span { display: inline-block; }
.jackpot span:first-child {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--navy-deep);
}

/* Countdown boxes (legacy) */
.countdown {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}
.box {
    width: 9rem;
    height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background-color: var(--gray-bg);
    border: solid 1px var(--gray-border);
    border-radius: var(--radius);
    text-align: center;
}
.box span { display: inline-block; }
.box span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    width: 80%;
    color: var(--navy);
}

/* Draw balls */
.tah-row {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.tah-balls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tah-row .nazev {
    font-size: 0.95rem;
    width: 4.5rem;
    font-weight: bold;
    color: var(--muted);
    letter-spacing: 0.04em;
}
div.ball {
    font-size: 1.8rem;
    background: radial-gradient(circle at 35% 30%, #fff6c5 0%, var(--yellow) 60%);
    border-radius: 50%;
    border: solid 1px var(--yellow-dark);
    width: 3.75rem;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--navy-deep);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), inset -2px -2px 4px rgba(0, 0, 0, 0.08);
}
div.ball.last {
    background: radial-gradient(circle at 35% 30%, #3747a7 0%, var(--navy) 60%);
    color: var(--yellow);
    border: solid 1px var(--navy);
}
div.ball-empty {
    width: 3.75rem;
    border: solid 1px transparent;
}

/* Calendars */
.calendars {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.calendar {
    flex: 1 1 18rem;
}
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.calendar .day {
    background: var(--gray-bg);
    color: #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
}
.calendar .day:before {
    content: "";
    display: block;
    padding-top: 100%;
}
.calendar .day.empty {
    background: transparent;
}
.calendar .day.empty:before {
    content: "";
    display: block;
    padding-top: 100%;
}
.calendar .day.active {
    background-color: var(--yellow);
    font-weight: bold;
    color: var(--navy);
    border: solid 1px var(--yellow-dark);
}
.calendar a,
.calendar a:active,
.calendar a:hover,
.calendar a:visited {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.calendar .month {
    text-align: center;
    font-weight: bold;
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.calendar .month a:hover { text-decoration: underline; }
.calendar .day a:hover {
    background-color: var(--navy);
    color: var(--yellow);
    border: solid 1px var(--navy);
}
.three .calendar { flex-basis: 30%; }
.four .calendar { flex-basis: 22%; }

/* CTA button */
a.button {
    margin: 2rem auto;
    max-width: 22rem;
    width: 80%;
    color: var(--yellow);
    border: solid 1px var(--navy);
    background-color: var(--navy);
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    height: 3rem;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 1, 102, 0.25);
}
a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 1, 102, 0.35);
}

/* FAQ accordion */
.faq {
    margin-top: 2rem;
}
.faq details {
    background: var(--gray-bg);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.15s ease;
}
.faq details[open] {
    box-shadow: var(--shadow-sm);
    border-color: var(--yellow-dark);
}
.faq summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    color: var(--navy);
    font-size: 1.05rem;
    padding-right: 1.5rem;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--yellow-dark);
    transition: transform 0.2s ease;
}
.faq details[open] summary::after {
    content: "−";
}
.faq .faq-body {
    margin-top: 0.75rem;
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

/* Footer */
.footer {
    background: var(--navy-deep);
    color: #fff;
    margin-top: 5rem;
    padding: 3rem 1rem;
    text-align: center;
    font-size: 0.8rem;
}
.footer a, .footer a:visited {
    color: var(--yellow);
    text-decoration: none;
}
.footer a:hover { text-decoration: underline; }
.footer .copyright {
    margin-bottom: 1.5em;
    font-weight: bold;
    font-size: 0.9rem;
}
.footer nav {
    margin-bottom: 1.5rem;
}
.footer nav a {
    margin: 0 0.5rem;
    display: inline-block;
}

.next a {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--navy);
    font-weight: bold;
}

/* Responsive */
@media only screen and (max-width: 799px) {
    .hamburger {
        top: 0.65rem;
        left: 0.5rem;
        display: inline-block;
        padding: 0 1rem;
        position: fixed;
        cursor: pointer;
        font-size: 1.4rem;
        z-index: 10002;
    }
    .top-nav .left-menu,
    .top-nav .right-menu { display: none; }
    .top-nav .logo {
        display: block;
        text-align: center;
        width: 100%;
    }
    .main {
        width: 100%;
        margin: 0;
        padding: 1rem;
        padding-top: 4rem;
    }
    h1, h2 {
        margin-top: 2rem;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }
    h1 { font-size: 1.75rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero-jackpot .value { font-size: 1.5rem; }
    div.ball {
        font-size: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
    div.ball-empty {
        font-size: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
    .jackpots {
        margin: 2rem 0;
        flex-direction: column;
    }
    .jackpot {
        width: 100%;
        margin-top: 1rem;
        height: auto;
        padding: 1.25rem;
        font-size: 2rem;
    }
    .jackpot span { width: 95%; }
    .vysledky { font-size: 0.95rem; }
    .vysledky td { padding: 0.6rem 0.4rem; }
    .vysledky thead td:first-child,
    .vysledky tr td:last-child,
    .vysledky tfoot td,
    .vysledky tfoot td:last-child {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    .box {
        width: 5rem;
        height: 5rem;
    }
    .box span:first-child { font-size: 1.5rem; }
    .calendars.three,
    .calendars.four {
        margin: 2rem 0;
        flex-direction: column;
    }
    .calendars.three .calendar,
    .calendars.four .calendar {
        width: 100%;
        margin: 1rem 0;
    }
    .prev-next {
        flex-direction: column;
    }
    .hero { padding: 1.5rem 1rem; }
    .hero-countdown { gap: 0.35rem; }
    .hero-countdown .unit { min-width: 3.75rem; padding: 0.5rem 0.5rem; }
    .hero-countdown .num { font-size: 1.3rem; }
}

@media only screen and (max-width: 599px) {
    div.ball {
        font-size: 1rem;
        width: 2.25rem;
        height: 2.25rem;
    }
    div.ball-empty {
        font-size: 1rem;
        width: 2.25rem;
        height: 2.25rem;
    }
    .tah-row .nazev { width: 3rem; font-size: 0.8rem; }
    .calendars {
        flex-direction: column;
        margin: 2rem 0;
    }
    .calendar {
        width: 100%;
        margin: 1rem 0;
    }
}
