/* ============================================================
   moje-odpovedi.css — Fajn Účet
   Styly specifické pro stránku "Moje odpovědi".
   Obecné styly (layout, sidebar, header…) jsou v obecne.css.
   ============================================================ */

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

/* =============================================================
   BANNER KARTA (zeleno-tyrkysový gradient)
   ============================================================= */
.odpovedi-banner-card {
    margin-bottom: 1.5rem;
    padding: 0;
    background: linear-gradient(135deg, hsl(160 50% 95%) 0%, hsl(175 55% 88%) 35%, hsl(190 60% 82%) 100%);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.odpovedi-banner-content {
    display: flex;
    align-items: stretch;
    min-height: 0;
}

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

.odpovedi-banner-illustration img {
    width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
}

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

.odpovedi-banner-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .odpovedi-banner-title { font-size: 1.375rem; }
}

.odpovedi-banner-title-icon {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: -0.125rem;
    fill: hsl(var(--foreground));
}

@media (min-width: 768px) {
    .odpovedi-banner-title-icon { width: 1.375rem; height: 1.375rem; }
}

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

/* Tagy v banneru */
.odpovedi-banner-tags {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 1.625rem 2.5rem;
    justify-content: stretch;
}

.odpovedi-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 */
.odpovedi-tag-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

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

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

/* =============================================================
   STATISTIKY (4 kartičky)
   ============================================================= */
.odpovedi-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .odpovedi-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
    .odpovedi-stats { grid-template-columns: 1fr; }
}

.odpovedi-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.odpovedi-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.odpovedi-stat-icon--total    { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }
.odpovedi-stat-icon--waiting  { background: hsl(38 92% 50% / 0.12);    color: hsl(32 95% 44%); }
.odpovedi-stat-icon--accepted { background: hsl(142 76% 36% / 0.12);   color: hsl(142 76% 30%); }
.odpovedi-stat-icon--rejected { background: hsl(0 84% 60% / 0.12);     color: hsl(0 72% 51%); }

.odpovedi-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1;
}

.odpovedi-stat-label {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* =============================================================
   KARTA FILTRACE
   ============================================================= */
.odpovedi-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.odpovedi-section-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.odpovedi-section-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.odpovedi-section-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

/* Filtry */
.odpovedi-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.odpovedi-filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.odpovedi-filter-row:first-child {
    grid-template-columns: 1fr;
}

@media (max-width: 767px) {
    .odpovedi-filter-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
    .odpovedi-filter-row { grid-template-columns: 1fr; }
}

.odpovedi-filter-group--wide {
    grid-column: 1 / -1;
}

.odpovedi-filter-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.375rem;
}

.odpovedi-filter-input,
.odpovedi-filter-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: hsl(var(--muted) / 0.5);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    transition: all 0.15s;
    font-family: inherit;
}

.odpovedi-filter-input:focus,
.odpovedi-filter-select:focus {
    outline: none;
    border-color: hsl(var(--primary));
    background: white;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

/* Stavové pilulky */
.odpovedi-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

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

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

.odpovedi-filter-tag.active {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.odpovedi-filter-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.odpovedi-filter-dot--waiting  { background: hsl(38 92% 50%); }
.odpovedi-filter-dot--accepted { background: hsl(142 76% 36%); }
.odpovedi-filter-dot--rejected { background: hsl(0 84% 60%); }

/* =============================================================
   VÝPIS ODPOVĚDÍ — KARTY
   ============================================================= */
.odpovedi-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.odpovedi-item {
    padding: 1.25rem 1.5rem;
    transition: all 0.15s;
}

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

/* Hlavička položky */
.odpovedi-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.odpovedi-item-main {
    flex: 1;
    min-width: 0;
}

.odpovedi-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.375rem;
}

.odpovedi-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.odpovedi-item-firma,
.odpovedi-item-lokalita {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

/* Stavové odznáčky */
.odpovedi-stav {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.odpovedi-stav--cekajici {
    background: hsl(38 92% 50% / 0.12);
    color: hsl(32 95% 35%);
}

.odpovedi-stav--prijate {
    background: hsl(142 76% 36% / 0.12);
    color: hsl(142 76% 30%);
}

.odpovedi-stav--zamitnute {
    background: hsl(0 84% 60% / 0.12);
    color: hsl(0 72% 51%);
}

/* Text odpovědi uchazeče */
.odpovedi-item-zprava {
    display: flex;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: hsl(var(--muted) / 0.4);
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

.odpovedi-item-zprava-icon {
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.odpovedi-item-zprava p {
    font-size: 0.8125rem;
    color: hsl(var(--foreground));
    line-height: 1.6;
}

/* Přílohy */
.odpovedi-item-prilohy {
    margin-bottom: 0.75rem;
}

.odpovedi-item-prilohy-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.odpovedi-item-prilohy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.odpovedi-item-priloha {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--primary));
    text-decoration: none;
    transition: all 0.15s;
}

.odpovedi-item-priloha:hover {
    background: hsl(var(--primary) / 0.06);
    border-color: hsl(var(--primary) / 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Patička položky */
.odpovedi-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
}

.odpovedi-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.odpovedi-item-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.odpovedi-item-tag--sekce {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.odpovedi-item-tag--sazba {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.odpovedi-item-datum {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
}

@media (max-width: 639px) {
    .odpovedi-item-header { flex-direction: column; gap: 0.5rem; }
    .odpovedi-item-footer { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* =============================================================
   PRÁZDNÝ STAV
   ============================================================= */
.odpovedi-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.odpovedi-empty-icon {
    width: 3rem;
    height: 3rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.odpovedi-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.odpovedi-empty-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}
