/* ============================================================
   oznameni.css — Fajn Účet
   Styly specifické pro stránku "Oznámení".
   Obecné styly (layout, sidebar, header…) jsou v obecne.css.
   ============================================================ */

/* =============================================================
   LAYOUT STRÁNKY
   ============================================================= */
.oznameni-page {
    padding-bottom: 3rem;
}

/* =============================================================
   BANNER KARTA (světlý modro-fialový gradient s ilustrací a tagy)
   ============================================================= */
.oznameni-banner {
    margin-bottom: 1.5rem;
    padding: 0;
    background: linear-gradient(135deg, hsl(220 55% 95%) 0%, hsl(240 60% 92%) 35%, hsl(260 55% 85%) 100%);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.oznameni-banner__content {
    display: flex;
    align-items: stretch;
    min-height: 0;
}

/* Ilustrace — levá strana */
.oznameni-banner__illustration {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 1rem 0.5rem;
    position: relative;
}

.oznameni-banner__illustration img {
    width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Text blok — pravá strana */
.oznameni-banner__text {
    flex: 1;
    padding: 1.5rem 1.75rem 1.5rem 0.5rem;
}

.oznameni-banner__title {
    font-size: 1.25rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .oznameni-banner__title { font-size: 1.375rem; }
}

.oznameni-banner__title-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    stroke: currentColor;
}

@media (min-width: 768px) {
    .oznameni-banner__title-icon { width: 1.375rem; height: 1.375rem; }
}

.oznameni-banner__desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1.125rem;
}

/* Tagy */
.oznameni-banner__tags {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 1.625rem 2.5rem;
    justify-content: stretch;
}

.oznameni-banner__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    white-space: nowrap;
}

/* Kolečkové checkmarky */
.oznameni-tag-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oznameni-tag-circle svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 3;
}

.oznameni-tag-circle--green  { background: #dcfce7; color: #33b061; }
.oznameni-tag-circle--blue   { background: #dbeafe; color: #497eef; }
.oznameni-tag-circle--purple { background: #f3e8ff; color: #a95def; }
.oznameni-tag-circle--coral  { background: #fce7f3; color: #e45997; }

/* Mobil — banner */
@media (max-width: 639px) {
    .oznameni-banner__content { flex-direction: column; }
    .oznameni-banner__illustration {
        width: 100%;
        height: 80px;
        padding: 0.75rem 0 0;
        justify-content: center;
    }
    .oznameni-banner__illustration img { width: 80px; }
    .oznameni-banner__text {
        padding: 1rem 1.25rem 1.25rem;
        text-align: center;
    }
    .oznameni-banner__tags {
        grid-template-columns: repeat(2, auto);
        justify-content: center;
    }
}

/* =============================================================
   TOOLBAR (filtry + akce)
   ============================================================= */
.oznameni-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.oznameni-toolbar__title {
    font-size: 1.25rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.25rem;
}

.oznameni-toolbar__icon {
    width: 1.125rem;
    height: 1.125rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.oznameni-toolbar__desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    width: 100%;
    margin-bottom: 0.5rem;
}

.oznameni-toolbar__left {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.oznameni-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 2px solid hsl(var(--border));
    background: #fff;
    color: hsl(var(--foreground));
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.oznameni-filter:hover {
    border-color: hsl(var(--primary) / 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.oznameni-filter--active {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    transform: none;
    box-shadow: none;
}

.oznameni-filter__count {
    font-size: 0.75rem;
    font-weight: 700;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    padding: 0.0625rem 0.4375rem;
    border-radius: 9999px;
}

.oznameni-filter--active .oznameni-filter__count {
    background: hsl(var(--primary));
    color: #fff;
}

.oznameni-mark-all {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--muted-foreground));
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.oznameni-mark-all:hover {
    border-color: hsl(var(--primary) / 0.4);
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
}

/* =============================================================
   SEZNAM OZNÁMENÍ
   ============================================================= */
.oznameni-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* =============================================================
   JEDNOTLIVÉ OZNÁMENÍ
   ============================================================= */
.oznameni-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.55);
    transition: all 0.15s;
    cursor: pointer;
    position: relative;
}

.oznameni-item:hover {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Přečtené — ztlumený nadpis */
.oznameni-item .oznameni-item__title {
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

/* Přečtené — ztlumená ikona */
.oznameni-item .oznameni-item__icon {
    opacity: 0.45;
}

/* ── Nepřečtené — plné barvy, výrazné ── */
.oznameni-item--unread {
    background: #fff;
    box-shadow: 0 0 0 1.5px hsl(var(--primary) / 0.35), 0 2px 8px rgba(0, 0, 0, 0.06);
    opacity: 1;
}

.oznameni-item--unread:hover {
    opacity: 1;
}

.oznameni-item--unread .oznameni-item__title {
    font-weight: 700;
    color: hsl(var(--foreground));
}

.oznameni-item--unread .oznameni-item__icon {
    opacity: 1;
}

/* Ikona kategorie */
.oznameni-item__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oznameni-item__icon--green  { background: hsl(142 76% 36% / 0.12); color: hsl(142 76% 36%); }
.oznameni-item__icon--blue   { background: hsl(217 91% 60% / 0.12); color: hsl(217 91% 50%); }
.oznameni-item__icon--purple { background: hsl(270 67% 47% / 0.12); color: hsl(270 67% 47%); }
.oznameni-item__icon--coral  { background: hsl(340 82% 52% / 0.12); color: hsl(340 82% 52%); }

/* Tělo oznámení */
.oznameni-item__body {
    flex: 1;
    min-width: 0;
}

.oznameni-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
}

.oznameni-item__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.4;
}

/* Štítek kategorie */
.oznameni-item__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.oznameni-item__badge--nabidka { background: hsl(142 76% 36% / 0.1);  color: hsl(142 76% 30%); }
.oznameni-item__badge--odpoved { background: hsl(217 91% 60% / 0.1);  color: hsl(217 91% 45%); }
.oznameni-item__badge--novinka { background: hsl(270 67% 47% / 0.1);  color: hsl(270 67% 42%); }
.oznameni-item__badge--overeni { background: hsl(340 82% 52% / 0.1);  color: hsl(340 82% 45%); }

/* Text oznámení */
.oznameni-item__text {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Meta řádek (čas + tečka nepřečteno) */
.oznameni-item__meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.oznameni-item__time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Oranžová tečka pro nepřečtená */
.oznameni-item__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: hsl(var(--primary));
    flex-shrink: 0;
}

/* =============================================================
   RESPONSIVITA
   ============================================================= */
@media (max-width: 639px) {
    .oznameni-item {
        padding: 1rem;
    }

    .oznameni-item__icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .oznameni-item__header {
        flex-direction: column;
        gap: 0.375rem;
    }

    .oznameni-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .oznameni-toolbar__left {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .oznameni-mark-all {
        justify-content: center;
    }
}
