/* Odhlašovač – vizuální styl převzatý z repetiv.cz */
:root {
    --primary: #d72886;
    --primary-dark: #c42079;
    --primary-soft: #fff0fa;
    --primary-soft-2: #ffdaf3;
    --secondary: #241f5f;
    --light: #756fbc;
    --lavender: #eeefff;
    --lavender-2: #e5e7ff;
    --lavender-3: #cdcaf5;
    --white: #fff;
    --success: #4d8602;
    --success-soft: #eef8df;
    --danger: #c42079;
    --font-heading: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
    --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius-card: 40px;
    --shadow: 0 20px 60px rgba(36, 31, 95, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary);
    background: var(--lavender);
    background-image:
        radial-gradient(60% 40% at 15% 0%, rgba(215, 40, 134, .10) 0%, rgba(215, 40, 134, 0) 70%),
        radial-gradient(50% 40% at 90% 10%, rgba(117, 111, 188, .22) 0%, rgba(117, 111, 188, 0) 70%);
    background-repeat: no-repeat;
}

a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ------------------------------------------------------------- hlavička / patička */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px clamp(20px, 5vw, 60px);
}
.logo img { height: 32px; width: auto; display: block; transition: transform .2s ease; }
.logo:hover img { transform: rotate(-2deg) scale(1.05); }

.admin-nav { display: flex; align-items: center; gap: 10px; }
.admin-nav form { margin: 0; }

.site-footer {
    margin-top: auto;
    padding: 32px 20px 40px;
    text-align: center;
    font-size: 14px;
    color: var(--light);
}
.site-footer a { color: var(--light); }

/* ------------------------------------------------------------- layout */
.page {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 40px) 20px 40px;
}
.page--wide { max-width: 1180px; }

.card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: clamp(28px, 6vw, 56px);
    box-shadow: var(--shadow);
}
.card--center { text-align: center; }
.card--narrow { max-width: 480px; margin: 0 auto; }
.card--table { padding: clamp(20px, 3vw, 32px); border-radius: 28px; }

/* ------------------------------------------------------------- typografie */
h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(32px, 6vw, 46px);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 16px;
}
.accent { color: var(--primary); }
.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 14px;
    border-radius: 50px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.lead { font-size: 17px; margin: 0 0 24px; color: #3d3880; }
.muted { color: var(--light); }
.small { font-size: 13px; line-height: 1.5; margin: 18px 0 0; }
.optional { color: var(--light); font-weight: 500; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
code { background: var(--lavender); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* ------------------------------------------------------------- formulář */
.form { margin-top: 8px; }
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}
.field input, .field textarea, .search input {
    width: 100%;
    font: inherit;
    color: var(--secondary);
    background: var(--lavender);
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 14px 18px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .search input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(215, 40, 134, .15);
}
.field input::placeholder, .field textarea::placeholder { color: #a6a2d1; }

/* Past na roboty – mimo obrazovku, ne display:none */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------- tlačítka */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(215, 40, 134, .35); outline-offset: 2px; }

.btn--primary {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 10px 10px 10px 28px;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(215, 40, 134, .30);
}
.btn--primary:hover { background: var(--primary-dark); color: var(--white); box-shadow: 0 14px 34px rgba(215, 40, 134, .38); }
.btn--primary:only-child, .btn--primary:not(:has(.btn__icon)) { justify-content: center; padding: 16px 28px; }
.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    flex: none;
}

.btn--secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn--secondary:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn--ghost { background: transparent; color: var(--secondary); border-color: var(--lavender-3); }
.btn--ghost:hover { background: var(--white); color: var(--secondary); }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--primary-soft-2); }
.btn--danger:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn--sm { font-size: 14px; padding: 9px 18px; }
.btn--xs { font-size: 13px; padding: 6px 12px; }

/* ------------------------------------------------------------- hlášky */
.alert {
    border-radius: 18px;
    padding: 14px 18px;
    margin: 0 0 20px;
    font-weight: 600;
    font-size: 15px;
}
.alert p { margin: 0; }
.alert p + p { margin-top: 6px; }
.alert--error { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid var(--primary-soft-2); }
.alert--warn  { background: #fff6e0; color: #8a5a00; border: 1px solid #ffe4a6; }
.alert--ok    { background: var(--success-soft); color: var(--success); border: 1px solid #d3ecb3; }

.badge {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.badge--ok { background: var(--success-soft); color: var(--success); }

/* ------------------------------------------------------------- admin */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.stat {
    background: var(--white);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.stat__num { font-family: var(--font-heading); font-size: 38px; font-weight: 700; line-height: 1; color: var(--primary); }
.stat__label { margin-top: 6px; font-size: 14px; color: var(--light); font-weight: 600; }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.search { display: flex; gap: 8px; flex: 1 1 320px; max-width: 520px; margin: 0; }
.search input { padding: 9px 16px; border-radius: 50px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--lavender-2); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--light); font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: #f7f7ff; }
tbody tr:last-child td { border-bottom: 0; }
.cell-email { font-weight: 700; word-break: break-all; }
.cell-reason { max-width: 340px; color: #3d3880; }
.cell-date { white-space: nowrap; }
.cell-actions { text-align: right; }
.cell-actions form { margin: 0; }
.empty { text-align: center; color: var(--light); padding: 40px 0; margin: 0; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; }
.pagination a {
    min-width: 36px; height: 36px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50px; background: var(--lavender); color: var(--secondary); font-size: 14px;
}
.pagination a:hover { background: var(--lavender-2); text-decoration: none; }
.pagination a.is-active { background: var(--primary); color: var(--white); }

@media (max-width: 640px) {
    .stats { grid-template-columns: 1fr; }
    .site-header { padding: 20px; }
    .card { border-radius: 28px; }
    .btn--primary { padding-left: 20px; }
}
