/* =========================
   HOME DAILY DASHBOARD
========================= */

.daily-dashboard {
    padding: 24px 0 14px;
}

.daily-dashboard-shell {
    background:
        radial-gradient(circle at top right, rgba(184, 135, 70, .18), transparent 22rem),
        radial-gradient(circle at bottom left, rgba(23, 50, 77, .10), transparent 20rem),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(251, 248, 242, .94));
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 34px);
    overflow: hidden;
    position: relative;
}

.daily-dashboard-shell::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -120px;
    top: -120px;
    border-radius: 999px;
    background: rgba(23, 50, 77, .08);
}

.daily-dashboard-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
}

.daily-dashboard-header h2 {
    margin: 0;
    color: var(--brand);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: .98;
    letter-spacing: -.055em;
}

.daily-dashboard-header p {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.6;
}

.daily-updated {
    justify-self: end;
    padding: 10px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .82);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.daily-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.daily-card {
    min-height: 188px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-left: 5px solid #d9e6f0;
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.daily-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(24, 33, 47, .12);
}

.daily-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.daily-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    font-size: 18px;
}

.daily-card strong {
    display: block;
    color: var(--brand);
    font-size: 14px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.daily-status-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1px solid #d9e6f0;
    color: var(--brand);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.daily-value {
    color: var(--brand);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2.6vw, 31px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.045em;
}

.daily-card p {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 13px;
}

.daily-source {
    width: fit-content;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1px solid #d9e6f0;
    color: var(--brand);
    font-size: 11px;
    font-weight: 950;
}

.daily-link {
    margin-top: auto;
    padding-top: 14px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 950;
}

.daily-card.ok {
    border-color: rgba(63, 111, 87, .22);
    border-left-color: var(--green);
}

.daily-card.ok .daily-icon,
.daily-card.ok .daily-status-badge {
    background: #eef7f1;
    border-color: #d8eadf;
    color: var(--green);
}

.daily-card.warning {
    background: #fff8ed;
    border-color: #efd9b9;
    border-left-color: var(--gold);
}

.daily-card.warning .daily-icon,
.daily-card.warning .daily-status-badge {
    background: #fff1d8;
    border-color: #efd9b9;
    color: #8a5a19;
}

.daily-card.alert {
    background: var(--red-soft);
    border-color: rgba(143, 29, 29, .22);
    border-left-color: #8f1d1d;
}

.daily-card.alert .daily-icon,
.daily-card.alert .daily-status-badge {
    background: #ffe3dd;
    border-color: rgba(143, 29, 29, .22);
    color: #8f1d1d;
}

.daily-card.neutral {
    border-left-color: var(--brand);
}

.daily-card.neutral .daily-icon,
.daily-card.neutral .daily-status-badge {
    background: var(--brand-soft);
    border-color: #d9e6f0;
}

.daily-card-wide {
    grid-column: 1 / -1;
    min-height: auto;
}

/* =========================
   ANDALMET WIDGETS
========================= */

.weather-widget-section,
.weather-detail-section {
    padding: 28px 0;
}

.andalmet-widget-card {
    background:
        radial-gradient(circle at top right, rgba(184, 135, 70, .12), transparent 16rem),
        rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: clamp(18px, 3vw, 26px);
    overflow: hidden;
}

.andalmet-home-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.andalmet-widget-card h2,
.andalmet-widget-card h3 {
    margin: 10px 0 8px;
    color: var(--brand);
    letter-spacing: -.035em;
}

.andalmet-widget-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.andalmet-widget-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.andalmet-widget-frame {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.andalmet-widget-frame iframe {
    max-width: 100%;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
}

.weather-widget-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

.compact-widget-card {
    min-height: 100%;
}

@media (max-width: 1180px) {
    .daily-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .andalmet-home-card,
    .weather-widget-layout {
        grid-template-columns: 1fr;
    }

    .andalmet-widget-header {
        display: block;
    }
}

@media (max-width: 820px) {
    .daily-dashboard {
        padding-top: 18px;
    }

    .daily-dashboard-header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .daily-updated {
        justify-self: start;
        white-space: normal;
    }

    .daily-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .daily-dashboard-shell {
        border-radius: 26px;
        padding: 18px;
    }

    .daily-grid {
        grid-template-columns: 1fr;
    }

    .daily-card {
        min-height: auto;
    }

    .andalmet-widget-card {
        border-radius: 24px;
    }
}
