*, *::before, *::after { box-sizing: border-box; }
:root {
    --indigo: #6366f1;
    --emerald: #10b981;
    --surface: #0f172a;
    --surface2: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255,255,255,0.08);
    --card: rgba(255,255,255,0.04);
    --r: 10px;
}
body {
    font-family: 'Lexend', sans-serif;
    background: var(--surface);
    color: var(--text);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ── HLAVIČKA ── */
.share-header {
    background: rgba(99,102,241,0.06);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}
.share-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.share-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--indigo);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-logo-text {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.5px;
}
.share-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99,102,241,0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}
.share-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ── OBSAH ── */
.share-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}
.share-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.share-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(99,102,241,0.12);
    color: #a5b4fc;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.share-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin: 0 0 8px;
    color: var(--text);
}
.share-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.share-content {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 32px;
    line-height: 1.8;
    font-size: 15px;
}

/* ── Markdown rendering ── */
.share-content h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--indigo);
    border-left: 3px solid var(--indigo);
    padding-left: 10px;
    margin: 20px 0 8px;
}
.share-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 16px 0 6px;
}
.share-content strong { font-weight: 700; color: var(--text); }
.share-content em { font-style: italic; color: var(--text-muted); }
.share-content ul, .share-content ol {
    padding-left: 22px;
    margin: 8px 0;
}
.share-content li { margin-bottom: 4px; }
.share-content hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* ── FOOTER ── */
.share-footer {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(99,102,241,0.05);
    border-top: 1px solid var(--border);
    text-align: center;
}
.share-footer p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0;
}
.share-footer a {
    color: var(--indigo);
    text-decoration: none;
    font-weight: 600;
}

/* ── 404 ── */
.share-notfound {
    max-width: 460px;
    margin: 80px auto;
    text-align: center;
    padding: 0 24px;
}
.share-notfound .emoji { font-size: 64px; margin-bottom: 16px; }
.share-notfound h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.share-notfound p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ── TLAČÍTKA ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .18s;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: #4f51e0; }
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.btn-success { background: var(--emerald); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Toast */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    animation: toastIn .3s ease;
    max-width: 320px;
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
}
.toast.success { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.toast.error { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
@keyframes toastIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }
