/* ── Empty State Component ── */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    min-height: 320px;
    width: 100%;
}

.empty-state.hidden { display: none; }

/* ── Illustration ── */

.empty-state__illustration {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.empty-state__svg {
    width: 100%;
    height: 100%;
    color: var(--es-stroke, #1B3A5C);
}

/* Brand colour fills — semantic classes used by SVG partials */
.es-fill-primary   { fill: var(--es-primary, #1B3A5C); }
.es-fill-accent    { fill: var(--es-accent, #E05A2B); }
.es-fill-warm      { fill: var(--es-warm, #FFF5ED); }
.es-stroke-primary { stroke: var(--es-primary, #1B3A5C); }
.es-stroke-accent  { stroke: var(--es-accent, #E05A2B); }

html.dark .empty-state__svg { color: rgba(255, 255, 255, 0.7); }
html.dark .es-fill-primary  { fill: #8BADC9; }
html.dark .es-fill-warm     { fill: rgba(255, 245, 237, 0.08); }
html.dark .es-stroke-primary { stroke: #8BADC9; }

/* ── Typography ── */

.empty-state__heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 8px;
    line-height: 1.3;
}

.empty-state__subcopy {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    margin: 0 0 24px;
    max-width: 280px;
    line-height: 1.5;
}

html.dark .empty-state__heading { color: #f3f4f6; }
html.dark .empty-state__subcopy { color: #9ca3af; }

/* ── CTAs ── */

.empty-state__cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, #ee774b 0%, #e05a2b 55%, #c84d23 100%);
    background-blend-mode: screen, normal;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 12px;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -1px 0 rgba(0,0,0,0.08),
        0 6px 16px rgba(224,90,43,0.32),
        0 1px 3px rgba(224,90,43,0.18);
    text-shadow: 0 1px 1px rgba(0,0,0,0.08);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.1s ease, background-image 0.2s ease;
}

.empty-state__cta-primary:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(0,0,0,0.1),
        0 8px 22px rgba(224,90,43,0.38),
        0 2px 6px rgba(224,90,43,0.2);
}
.empty-state__cta-primary:active { transform: scale(0.97); }

html:not(.dark) .empty-state__cta-primary {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(0,0,0,0.06),
        0 4px 12px rgba(224,90,43,0.25),
        0 1px 3px rgba(224,90,43,0.15);
}
html:not(.dark) .empty-state__cta-primary:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        inset 0 -1px 0 rgba(0,0,0,0.08),
        0 6px 18px rgba(224,90,43,0.3),
        0 2px 6px rgba(224,90,43,0.18);
}

.empty-state__cta-icon { font-size: 16px; }

.empty-state__cta-secondary {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.14) 100%);
    border: 1px solid rgba(224,90,43,0.45);
    border-radius: 10px;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    color: #E05A2B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        0 4px 14px rgba(0,0,0,0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.empty-state__cta-secondary:hover {
    border-color: rgba(224,90,43,0.7);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        0 4px 14px rgba(0,0,0,0.1);
}

html.dark .empty-state__cta-secondary {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-color: rgba(224,90,43,0.4);
    color: #ee774b;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 4px 14px rgba(0,0,0,0.15);
}
html.dark .empty-state__cta-secondary:hover {
    border-color: rgba(224,90,43,0.65);
}

/* ── Suggestion Chips ── */

.empty-state__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    max-width: 320px;
}

.empty-state__chips.hidden { display: none; }

.empty-state__chips-label {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
}

.empty-state__chip {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    background: transparent;
    font-size: 13px;
    color: var(--text-primary, #111827);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.empty-state__chip:hover {
    border-color: #E05A2B;
    background: rgba(224, 90, 43, 0.06);
}

html.dark .empty-state__chip {
    border-color: rgba(255, 255, 255, 0.15);
    color: #e5e7eb;
}

html.dark .empty-state__chip:hover {
    border-color: #E05A2B;
    background: rgba(224, 90, 43, 0.12);
}

/* ── Skeleton (isLoading) ── */

.empty-state__skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    padding: 24px;
}

.empty-state__skeleton-card {
    height: 88px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.03) 50%, rgba(0,0,0,0.06) 75%);
    background-size: 200% 100%;
    animation: es-shimmer 1.5s ease-in-out infinite;
}

html.dark .empty-state__skeleton-card {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
}

@keyframes es-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Responsive ── */

@media (min-width: 768px) {
    .empty-state { padding: 48px; }
    .empty-state__illustration { width: 200px; height: 200px; }
    .empty-state__cta-primary { width: auto; min-width: 200px; }
}
