/* ============================================================
   zivotopis-soukromi.css — Fajn Účet
   Nastavení soukromí jednotlivých sekcí online životopisu.
   Obecné styly (layout, sidebar, header…) jsou v obecne.css.
   ============================================================ */

.zs-page {
    /* main-layout (obecne.css) je na mobilu flex-direction:column s
       align-items:flex-start — tj. tento main.main-content se v cross-axis
       (šířka) chová jako fit-content místo stretch a bez explicitní šířky
       by se natáhl podle nejširšího vnořeného řádku (horizontální scroll). */
    width: 100%;
    max-width: 100%;
    padding-bottom: 3rem;
}

.zs-card {
    padding: 1.5rem;
}
@media (min-width: 768px) {
    .zs-card { padding: 2rem; }
}

/* =============================================================
   DROBEČKOVÁ NAVIGACE
   ============================================================= */
.zs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}
.zs-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: hsl(var(--accent));
    text-decoration: none;
    font-weight: 500;
}
.zs-breadcrumb a:hover { text-decoration: underline; }
.zs-breadcrumb__sep { color: hsl(var(--muted-foreground) / 0.6); }
.zs-breadcrumb span { color: hsl(var(--foreground)); font-weight: 500; }

/* =============================================================
   HLAVIČKA
   ============================================================= */
.zs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.zs-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.375rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 0.375rem;
}
.zs-title__icon { color: hsl(var(--primary)); width: 1.375rem; height: 1.375rem; }
@media (min-width: 768px) {
    .zs-title { font-size: 1.5rem; }
}

.zs-subtitle {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    max-width: 42rem;
}
.zs-subtitle strong { color: hsl(var(--foreground)); font-weight: 500; }

.zs-preview-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.zs-preview-link:hover {
    background: hsl(var(--secondary));
    border-color: hsl(var(--accent) / 0.4);
}

/* =============================================================
   LEGENDA
   ============================================================= */
.zs-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.875rem 1rem;
    background: hsl(var(--secondary) / 0.6);
    border-radius: 0.625rem;
}

.zs-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.zs-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    flex-shrink: 0;
}
.zs-dot--verejne { background: hsl(var(--success)); }
.zs-dot--firmy   { background: hsl(var(--accent)); }
.zs-dot--skryto  { background: hsl(var(--muted-foreground)); }

/* =============================================================
   SEZNAM SEKCÍ
   ============================================================= */
.zs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.zs-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: hsl(var(--card));
    flex-wrap: wrap;
}

.zs-item__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
}
.zs-item__icon .lucide { width: 1.125rem; height: 1.125rem; }

.zs-item__body {
    flex: 1 1 12rem;
    min-width: 0;
}
.zs-item__nazev {
    font-size: 0.9375rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.125rem;
}
.zs-item__popis {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
}

.zs-item__control {
    flex-shrink: 0;
    margin-left: auto;
}

/* Segmentovaný přepínač (3 stavy) */
.zs-segmented {
    display: inline-flex;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    overflow: hidden;
    background: hsl(var(--secondary) / 0.5);
}

.zs-segmented__btn {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.4375rem 0.75rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.zs-segmented__btn:not(:last-child) {
    border-right: 1px solid hsl(var(--border));
}
.zs-segmented__btn:hover { background: hsl(var(--secondary)); }

.zs-segmented__btn--verejne.is-active {
    background: hsl(var(--success));
    color: white;
}
.zs-segmented__btn--firmy.is-active {
    background: hsl(var(--accent));
    color: white;
}
.zs-segmented__btn--skryto.is-active {
    background: hsl(var(--muted-foreground));
    color: white;
}

/* =============================================================
   SOUHRN
   ============================================================= */
.zs-summary {
    margin-bottom: 1.5rem;
}

.zs-summary__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
}
.zs-summary__row .lucide {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.0625rem;
}

.zs-summary__row--ok {
    background: hsl(var(--success) / 0.08);
    border: 1px solid hsl(var(--success) / 0.25);
}
.zs-summary__row--ok .lucide { color: hsl(var(--success)); }

.zs-summary__row--warn {
    background: hsl(var(--warning) / 0.1);
    border: 1px solid hsl(var(--warning) / 0.3);
}
.zs-summary__row--warn .lucide { color: hsl(38 92% 40%); }

.zs-summary__title {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.1875rem;
}
.zs-summary__text {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.45;
}

/* =============================================================
   AKCE DOLE
   ============================================================= */
.zs-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

.zs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.zs-btn--ghost {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}
.zs-btn--ghost:hover { background: hsl(var(--secondary)); }

.zs-btn--primary {
    background: hsl(var(--primary));
    color: white;
}
.zs-btn--primary:hover { opacity: 0.92; }

/* =============================================================
   RESPONZIVITA
   ============================================================= */
@media (max-width: 560px) {
    .zs-item { flex-direction: column; align-items: flex-start; }
    .zs-item__control { margin-left: 0; width: 100%; }
    .zs-segmented { width: 100%; }
    .zs-segmented__btn { flex: 1; text-align: center; }
    .zs-preview-link { width: 100%; justify-content: center; }
}
