/* ==========================================================================
   CONSUMPTION LOG — global styles
   (Presunuto z ConsumptionLog.razor.css — scoped CSS nedosahne do child
    komponent v ConsumptionLogCards/. Tridy jsou sdilene napric strankou.)
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────── */
.watthub-hero {
    background: linear-gradient(120deg, var(--wh-bolt-sky-deep) 0%, var(--wh-bolt-sky-deep) 100%);
    border-radius: 20px;
    padding: 40px 32px 36px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23, 101, 141, 0.2);
    box-shadow: 0 8px 32px rgba(23, 101, 141, 0.25), 0 2px 8px rgba(0,0,0,0.08);
}

.watthub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 4px 14px;
    color: rgba(255,255,255,0.9);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.watthub-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 0 8px;
    backdrop-filter: blur(8px);
}

.watthub-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 24px;
    gap: 2px;
}

.watthub-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
}

.watthub-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
}

.watthub-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.watthub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    justify-content: center;
}

/* ── Banners ──────────────────────────────────────────────────── */
.banner-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.banner-stat-label {
    font-size: 0.65rem;
    font-weight: 800;
    opacity: 0.5;
    letter-spacing: 1.5px;
    color: white;
}

.banner-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.banner-stat-sep {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.15);
}

.premium-status-chip {
    background: var(--wh-bolt-lime-deep) !important;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 0 12px;
    height: 24px;
    box-shadow: 0 4px 10px rgba(166, 206, 57, 0.3);
}

.banner-action-btn {
    background: var(--wh-bolt-sky-deep) !important;
    color: white !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    box-shadow: 0 10px 20px rgba(79, 180, 229, 0.4) !important;
    text-transform: none !important;
}

/* ── Entrance rows ────────────────────────────────────────────── */
.premium-entrance-row {
    background: var(--wh-surface);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid var(--wh-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.premium-entrance-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--wh-bolt-sky-deep);
}

.entrance-indicator {
    width: 54px;
    height: 54px;
    background: var(--wh-surface-alt);
    color: var(--wh-text);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
    border: 2px solid var(--wh-border);
}

.metric-pill {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    border-radius: 14px;
    min-width: 110px;
    flex: 1 1 110px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.pill-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--wh-text-2);
    letter-spacing: 0.5px;
}

.pill-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--wh-text);
}

.pill-value small { font-size: 0.75rem; opacity: 0.6; }
.pill-amber { background: rgba(245, 217, 10, 0.12); border-color: rgba(245, 217, 10, 0.35); }
.pill-blue  { background: rgba(79, 180, 229, 0.10); border-color: rgba(79, 180, 229, 0.30); }
.pill-green { background: rgba(166, 206, 57, 0.10); border-color: rgba(166, 206, 57, 0.30); }

.sparkline-container {
    padding-left: 20px;
    border-left: 1px solid var(--wh-surface-alt);
}

.section-title-dark { color: var(--wh-text); font-weight: 800; }

.om-total-badge {
    background: var(--wh-surface-alt);
    border: 1px solid var(--wh-border);
}

.premium-progress {
    height: 6px;
    background: rgba(255,255,255,0.05) !important;
}

.success-glow .metric-value { color: var(--wh-bolt-lime-deep); }
.info-glow .metric-value    { color: var(--wh-bolt-sky); }

.upper-label { color: rgba(255,255,255,0.4); font-weight: 700; }
.upper-value { color: white; font-weight: 800; }

/* ── Site cards ───────────────────────────────────────────────── */
.site-card {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease-in-out;
    border: 1px solid var(--wh-divider);
    border-radius: 24px !important;
    background: var(--wh-surface);
}

.site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

.card-header-premium {
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--wh-night-3) 0%, var(--wh-bolt-sky-deep) 100%);
    color: white;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.card-header-premium::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.status-pill {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-container-premium {
    background: var(--wh-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--wh-border);
    border-radius: 30px;
    padding: 12px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.search-container-premium:focus-within {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--wh-bolt-sky-deep);
}

.metric-container {
    background: var(--wh-surface-alt);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--wh-surface-alt);
    height: 100%;
}

.metric-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.action-btn-modern {
    border-radius: 14px !important;
    text-transform: none !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
}

.sharing-progress-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--wh-border);
    overflow: hidden;
    margin-top: 8px;
}

.sharing-progress-fill {
    height: 100%;
    background: var(--wh-bolt-lime-deep);
    border-radius: 4px;
}

/* ── Date Availability Heatmap ────────────────────────────────── */
.date-status-valid {
    background-color: rgba(166, 206, 57, 0.1) !important;
    border: 2px solid var(--wh-bolt-lime-deep) !important;
    border-radius: 50%;
}

.date-status-estimated {
    background-color: rgba(242, 148, 65, 0.1) !important;
    border: 2px solid var(--wh-bolt-orange) !important;
    border-radius: 50%;
}

.date-status-missing {
    background-color: rgba(230, 51, 41, 0.1) !important;
    border: 2px solid var(--wh-bolt-red) !important;
    border-radius: 50%;
}

/* ── Entrance detail hero stats ───────────────────────────────── */
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-right: 1px solid var(--wh-divider);
    padding-right: 24px;
}

.hero-stat:last-child { border-right: none; padding-right: 0; }

.hero-stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--wh-text);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-stat-value small {
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 2px;
    opacity: 0.6;
}

.hero-stat-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--wh-text-2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.text-green { color: var(--wh-bolt-lime-deep) !important; }
.text-blue  { color: var(--wh-bolt-sky-deep) !important; }
.text-amber { color: var(--wh-bolt-orange) !important; }
