/* ──────────────────────────────────────────────────────────
   Časomíra.online – sdílené styly (app.css)
   Page-specific CSS jde do sekce page_css v každém view.
────────────────────────────────────────────────────────── */

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black:    #0a0a0a;
    --white:    #ffffff;
    --bg:       #f9fafb;
    --text:     #111827;
    --muted:    #6b7280;
    --border:   #e5e7eb;
    --blue:     #0ea5e9;
    --blue-d:   #0284c7;
    --blue-l:   #e0f2fe;
    --violet-l: #ede9fe;
    --green-l:  #dcfce7;
    --amber-l:  #fef3c7;
    --dark-card:#111827;
    --r:        14px;
    --w:        1120px;
    --font:     'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; display: flex; flex-direction: column; }

/* ── NAV ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 62px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; background: var(--black);
}
.logo { font-size: 1.15rem; font-weight: 800; color: var(--white); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--blue); }

.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.nav-links a {
    color: #9ca3af; text-decoration: none; font-size: .88rem; font-weight: 500;
    padding: 6px 12px; border-radius: 6px; transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }

.nav-cta { background: var(--blue) !important; color: var(--white) !important; font-weight: 700 !important; padding: 7px 18px !important; }
.nav-cta:hover { background: var(--blue-d) !important; }

.nav-login { border: 1.5px solid rgba(255,255,255,.2) !important; }
.nav-login:hover,
.nav-login.active { border-color: rgba(255,255,255,.4) !important; color: var(--white) !important; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* ── FOOTER ── */
footer { background: var(--black); padding: 32px 24px; }
.foot { max-width: var(--w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot-logo { font-size: 1.05rem; font-weight: 800; color: var(--white); text-decoration: none; }
.foot-logo span { color: var(--blue); }
.foot-copy { color: #4b5563; font-size: .82rem; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 24px; border-radius: 8px; font-size: .95rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    font-family: var(--font); transition: all .18s;
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,.3); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: #9ca3af; background: var(--bg); }
.btn-full { width: 100%; justify-content: center; }

/* ── TAG LABEL ── */
.tag {
    display: inline-block; font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--blue-d); margin-bottom: 12px;
}

/* ── INNER PAGE WRAPPER ── */
.page-wrap { max-width: var(--w); margin: 0 auto; padding: 86px 24px 52px; width: 100%; }
.page-h {
    background: var(--white); border-radius: var(--r);
    padding: 28px 28px 24px; margin-bottom: 20px; border: 1.5px solid var(--border);
}
.page-h .tag { margin-bottom: 8px; }
.page-h h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -.04em; color: var(--text); margin-bottom: 5px; }
.page-h p { color: var(--muted); font-size: .93rem; }

/* ── FORM GROUPS ── */
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.fg input, .fg select, .fg textarea {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: .92rem; font-family: var(--font); color: var(--text); background: var(--bg);
    outline: none; transition: border-color .15s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--blue); background: var(--white); }
.fg textarea { resize: vertical; min-height: 88px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── BADGES ── */
.badge { display: inline-block; padding: 3px 9px; border-radius: 100px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.b-beh    { background: #dbeafe; color: #1d4ed8; }
.b-cyklo  { background: #dcfce7; color: #15803d; }
.b-tri    { background: #fce7f3; color: #be185d; }
.b-dual   { background: #fef3c7; color: #b45309; }
.b-other  { background: #f3f4f6; color: #374151; }
.b-open   { background: #dcfce7; color: #15803d; }
.b-closed { background: #fee2e2; color: #b91c1c; }
.b-soon   { background: #fef3c7; color: #b45309; }

/* ── ACTION BUTTON ── */
.act-btn {
    display: inline-flex; align-items: center; gap: 4px; font-size: .83rem; font-weight: 600;
    color: var(--blue-d); text-decoration: none; padding: 4px 10px;
    border-radius: 6px; border: 1.5px solid var(--border); transition: all .15s; white-space: nowrap;
}
.act-btn:hover { background: var(--blue-l); border-color: #bae6fd; }
.act-btn.dis { color: var(--muted); pointer-events: none; }

/* ── DATATABLES LAYOUT ── */
.table-responsive { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r); overflow: hidden; overflow-x: auto; }

.dataTables_wrapper .dt-top,
.dataTables_wrapper .dt-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dataTables_wrapper .dt-top    { margin-bottom: 12px; }
.dataTables_wrapper .dt-bottom { margin-top:    12px; }
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate { float: none !important; margin: 0 !important; }
.dataTables_wrapper .dt-top-right,
.dataTables_wrapper .dt-bottom-right { margin-left: auto; }
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .88rem; }
.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid var(--border) !important; border-radius: 8px; background: var(--white) !important;
    padding: 7px 11px; outline: none; box-shadow: none !important; min-width: 220px; font-family: var(--font);
}
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--blue) !important; }
.dataTables_wrapper .dataTables_length select { border: 1.5px solid var(--border); border-radius: 8px; background: var(--white); padding: 6px 10px; font-family: var(--font); }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 6px !important; padding: 4px 10px !important; cursor: pointer; font-size: .85rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--blue) !important; color: var(--white) !important; border-color: var(--blue) !important; }
.dataTables_wrapper .dataTables_info { font-size: .82rem; color: var(--muted); }

/* ── SCROLL ANIMATION ── */
.a { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.a.in { opacity: 1; transform: none; }

/* ── MOBILE ── */
@media (max-width: 820px) {
    .burger { display: flex; }
    .nav-links {
        display: none; position: fixed; top: 62px; left: 0; right: 0; z-index: 99;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--black); border-bottom: 1px solid #1f2937; padding: 8px 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a    { padding: 13px 24px; font-size: .95rem; border-radius: 0; }
    .nav-cta   { margin: 6px 20px 6px !important; border-radius: 8px !important; text-align: center; }
    .nav-login { margin: 0 20px !important; border-radius: 8px !important; text-align: center; }
    .foot { flex-direction: column; text-align: center; }
    .page-wrap { padding: 80px 16px 40px; }
    .fg-row { grid-template-columns: 1fr; }
    .dataTables_wrapper .dt-top, .dataTables_wrapper .dt-bottom { flex-direction: column; align-items: stretch; }
    .dataTables_wrapper .dt-top-right, .dataTables_wrapper .dt-bottom-right { margin-left: 0; }
    .dataTables_wrapper .dataTables_filter input { min-width: 100%; }
}
