/* Project Outlaws – červeno-černý web */
:root {
    --bg: #0c0909;
    --panel: rgba(18, 13, 13, 0.86);
    --panel-solid: #141010;
    --line: rgba(255, 255, 255, 0.08);
    --line-red: rgba(214, 16, 16, 0.45);
    --red: #d81010;
    --red-hi: #ff2a2a;
    --red-dark: #7d0707;
    --text: #ece6e2;
    --muted: #9a908b;
    --discord: #5865f2;
    --radius: 10px;
    --display: 'Rye', 'Georgia', serif;
    --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font: 17px/1.6 var(--body);
    background: var(--bg) url('/img/bg.jpg') center 35% / cover fixed no-repeat;
}
/* na podstránkách pozadí ztmavíme, aby se dalo číst */
body:not(.page-home)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(12, 9, 9, 0.55) 0%, rgba(12, 9, 9, 0.92) 45%, var(--bg) 100%);
}
main { flex: 1; }
a { color: var(--red-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--red); text-shadow: 0 2px 0 #000; }
h2 { font-size: 1.4rem; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- horní lišta ---------- */
.topbar {
    position: sticky; top: 0; z-index: 10;
    background: rgba(10, 7, 7, 0.82);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-red);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 2px 2px #000); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { color: var(--text); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav > a:hover { text-decoration: none; color: #fff; border-color: var(--red-dark); }
.nav > a.on { border-color: var(--red); color: #fff; }
.me { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.me img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--red); }
.me form { margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.link:hover { color: var(--red-hi); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); }

/* ---------- tlačítka ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 26px; border-radius: 6px; border: 1px solid transparent;
    font: 700 .95rem var(--body); text-transform: uppercase; letter-spacing: .1em;
    color: #fff; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.small { padding: 8px 16px; font-size: .78rem; }
.btn-red { background: linear-gradient(180deg, #e21414, #a00909); border-color: #ff3b3b33; box-shadow: 0 6px 24px rgba(216, 16, 16, .35); }
.btn-red:hover { box-shadow: 0 8px 30px rgba(216, 16, 16, .55); }
.btn-discord { background: var(--discord); }
.btn-discord:hover { background: #4752c4; }
.btn-ghost { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { border-color: var(--red); }

/* ---------- úvod ---------- */
.hero { position: relative; min-height: calc(100vh - 68px); display: flex; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,9,9,.35) 0%, rgba(12,9,9,0) 30%, rgba(12,9,9,0) 62%, rgba(12,9,9,.8) 88%, var(--bg) 100%); pointer-events: none; }
.hero-in { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: 4vh 0 7vh; }
.hero-logo { width: min(400px, 78vw); margin: 0 auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .85)); }
.hero-tag { max-width: 560px; margin: 10px auto 0; font-size: 1.15rem; color: #ddd3ce; text-shadow: 0 2px 6px #000, 0 0 20px #000; }
.hero-bottom { display: flex; flex-direction: column; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 16px; border-radius: 30px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); font-size: .95rem; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #777; }
.status.on .dot { background: #3ccf5a; box-shadow: 0 0 10px #3ccf5a; }
.status.off .dot { background: var(--red); }
.page-home main { display: flex; flex-direction: column; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 0; padding-bottom: 70px; position: relative; }
.features .card h2 { color: var(--red); }

/* ---------- karty ---------- */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 3px solid var(--red);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.card p:last-child { margin-bottom: 0; }
.link-arrow { font-weight: 700; }
.link-arrow::after { content: ' →'; }
.page-head { padding: 50px 0 24px; }

/* ---------- pravidla ---------- */
.prose { max-width: 860px; }
.prose h2 { color: var(--red); margin-top: 1.6em; padding-bottom: .3em; border-bottom: 1px solid var(--line-red); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose strong { color: #fff; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--red); background: rgba(216, 16, 16, .08); }
section.wrap:last-of-type { padding-bottom: 70px; }

/* ---------- profil ---------- */
.profile-head { display: flex; align-items: center; gap: 20px; }
.profile-head h1 { margin: 0; }
.profile-head p { margin: 4px 0 0; }
.avatar { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--red); box-shadow: 0 0 24px rgba(216, 16, 16, .4); }
.badge { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 20px; background: var(--red-dark); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.notice { max-width: 640px; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 22px; }
.char.dead { opacity: .75; }
.char-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.char-head h2 { margin: 0 0 2px; }
.char-head p { margin: 0; }
.cid { text-align: center; padding: 6px 12px; border: 1px dashed var(--line-red); border-radius: 6px; background: rgba(0, 0, 0, .3); }
.cid span { display: block; font-size: .65rem; letter-spacing: .2em; color: var(--muted); }
.cid strong { font-family: ui-monospace, 'Consolas', monospace; font-size: 1.1rem; letter-spacing: .12em; color: var(--red-hi); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.stats div { background: rgba(0, 0, 0, .3); border-radius: 6px; padding: 10px; }
dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
dd { margin: 2px 0 0; font-weight: 700; }
.block { margin-top: 18px; }
.jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jobs li { padding: 6px 12px; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.jobs li.active { border-color: var(--red); background: rgba(216, 16, 16, .12); }
.jobs small { display: block; color: var(--muted); font-size: .78rem; }
.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-size: .9rem; text-transform: none; letter-spacing: 0; }
.rows dd { margin: 0; text-align: right; }

/* ---------- patička ---------- */
.footer { border-top: 1px solid var(--line-red); background: rgba(8, 6, 6, .92); padding: 30px 0; font-size: .9rem; }
.footer-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-in p { margin: 0; }
.footer-logo { height: 36px; width: auto; }
.footer .muted { margin-left: auto; font-size: .8rem; }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
    .features { grid-template-columns: 1fr; margin-top: 0; }
    .chars { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    body { background-image: url('/img/bg-mobile.jpg'); background-attachment: scroll; background-position: center top; background-size: 100% auto; }
    body.page-home { background-image: none; }
    .page-home .hero { background: url('/img/bg-mobile.jpg') center 68% / cover no-repeat; }
    .nav-toggle { display: block; }
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; background: rgba(10, 7, 7, .97); border-bottom: 1px solid var(--line-red); }
    .nav.open { display: flex; }
    .nav > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav .btn, .me { margin-top: 12px; }
    .footer .muted { margin-left: 0; }
    .char-head { flex-direction: column; }
}
