/**
 * BD Weather by Tawba IT — Modern Stylesheet (v2.0.0)
 *
 * Developed by Tawba IT Limited (https://tawbait.com).
 * Specially tailored for agriculture & general users with:
 *  - Small location filter icon toggle (collapsible area selector)
 *  - Krishi Compact Bar (Screenshot 2 exact replica)
 *  - Prominent Rain Probability & Agricultural Advisory styling
 *  - Today's hour-by-hour forecast horizontal cards
 *  - 3-day forecast cards
 *  - Vector SVG weather graphics (Zero external image dependencies)
 *  - Native Theme & Elementor Color/Typography inheritance
 *  - 100% Mobile Responsive & Touch Friendly
 */

/* ── Global Custom Properties & Root Variables ────────────────────── */
.bdew-container {
    --bdew-primary: var(--e-global-color-primary, var(--wp--preset--color--primary, var(--ast-global-color-0, #0284c7)));
    --bdew-primary-hover: #0369a1;
    --bdew-text: var(--e-global-color-text, var(--wp--preset--color--contrast, #1e293b));
    --bdew-text-muted: #64748b;
    --bdew-card-bg: #ffffff;
    --bdew-border: #e2e8f0;
    --bdew-font: var(--e-global-typography-primary-font-family, inherit);

    font-family: var(--bdew-font, 'Noto Sans Bengali', 'Hind Siliguri', system-ui, -apple-system, sans-serif);
    color: var(--bdew-text);
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bdew-container *,
.bdew-container *::before,
.bdew-container *::after {
    box-sizing: border-box;
}

/* ── Dynamic Atmosphere Animation Layers ───────────────────────────── */
.bdew-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Sunny Atmosphere Effect */
.bdew-weather-sunny .bdew-sun-rays {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, rgba(245, 158, 11, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    animation: bdew-sun-spin 18s linear infinite;
}

@keyframes bdew-sun-spin {
    from { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.1); }
    to   { transform: rotate(360deg) scale(1); }
}

/* Cloudy Atmosphere Effect */
.bdew-weather-cloudy .bdew-clouds-layer {
    position: absolute;
    top: 15px;
    left: -100px;
    width: 250px;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(148, 163, 184, 0.25) 0%, transparent 70%);
    animation: bdew-cloud-drift 22s ease-in-out infinite alternate;
}

@keyframes bdew-cloud-drift {
    0%   { transform: translateX(0); opacity: 0.4; }
    100% { transform: translateX(200px); opacity: 0.8; }
}

/* Rainy Atmosphere Effect */
.bdew-weather-rainy .bdew-rain-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(56, 189, 248, 0.08));
    overflow: hidden;
}

.bdew-weather-rainy .bdew-rain-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, #38bdf8, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 70px 90px, #38bdf8, rgba(0,0,0,0)),
                      radial-gradient(1.5px 1.5px at 150px 40px, #38bdf8, rgba(0,0,0,0)),
                      radial-gradient(2px 2px at 230px 120px, #38bdf8, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 260px 260px;
    animation: bdew-rain-fall 0.75s linear infinite;
    opacity: 0.4;
}

@keyframes bdew-rain-fall {
    from { transform: translateY(-100px); }
    to   { transform: translateY(100px); }
}

/* Thunderstorm Effect */
.bdew-weather-thunder {
    animation: bdew-thunder-flash 7s infinite;
}

@keyframes bdew-thunder-flash {
    0%, 95%, 100% { filter: brightness(1); }
    96%, 98% { filter: brightness(1.2) contrast(1.05); }
}

/* ─── TEMPLATE 1: Modern Glass Card (Default) ──────────────────────── */
.bdew-tpl-card-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.bdew-tpl-card-modern .bdew-header {
    background: linear-gradient(135deg, var(--bdew-primary), #0f172a);
    color: #ffffff;
}

.bdew-tpl-card-modern .bdew-title {
    color: #ffffff;
}

/* ─── TEMPLATE: Krishi Compact Bar (Screenshot 2 Exact Replica) ─────── */
.bdew-tpl-krishi-compact {
    max-width: 480px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px 18px;
}

.bdew-tpl-krishi-compact .bdew-standard-layout,
.bdew-tpl-krishi-compact .bdew-header,
.bdew-tpl-krishi-compact .bdew-hourly-section,
.bdew-tpl-krishi-compact .bdew-forecast,
.bdew-tpl-krishi-compact .bdew-footer-brand {
    display: none !important;
}

.bdew-krishi-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bdew-krishi-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.02rem;
    color: #1e293b;
}

.bdew-krishi-icon-wrap {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdew-krishi-loc-text {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.bdew-krishi-loc-text strong {
    font-weight: 700;
    color: #0f172a;
}

.bdew-krishi-live-badge {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.bdew-krishi-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bdew-krishi-temp {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.bdew-krishi-temp .bdew-unit {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}

.bdew-krishi-metrics {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.4;
}

.bdew-rain-prob-highlight {
    color: #0284c7;
    font-weight: 700;
}

/* ─── TEMPLATE 2: Minimalist Clean ─────────────────────────────────── */
.bdew-tpl-minimal-clean {
    background: transparent;
    border: 1.5px solid var(--bdew-border);
    box-shadow: none;
    border-radius: 12px;
}

.bdew-tpl-minimal-clean .bdew-header {
    background: transparent;
    border-bottom: 1.5px solid var(--bdew-border);
    padding: 14px 20px;
}

.bdew-tpl-minimal-clean .bdew-title {
    color: var(--bdew-text);
    font-size: 1.15rem;
}

/* ─── TEMPLATE 3: Vibrant Animated Gradient ────────────────────────── */
.bdew-tpl-gradient-vibrant {
    background: linear-gradient(135deg, #091e3a 0%, #2f80ed 50%, #2d9cdb 100%);
    color: #ffffff;
    border: none;
}

.bdew-tpl-gradient-vibrant .bdew-header {
    background: rgba(0, 0, 0, 0.15);
}

.bdew-tpl-gradient-vibrant .bdew-title,
.bdew-tpl-gradient-vibrant .bdew-current-temp,
.bdew-tpl-gradient-vibrant .bdew-loc-badge,
.bdew-tpl-gradient-vibrant .bdew-detail-value {
    color: #ffffff;
}

.bdew-tpl-gradient-vibrant .bdew-current-desc,
.bdew-tpl-gradient-vibrant .bdew-detail-label,
.bdew-tpl-gradient-vibrant .bdew-unit {
    color: rgba(255, 255, 255, 0.85);
}

.bdew-tpl-gradient-vibrant .bdew-current-details,
.bdew-tpl-gradient-vibrant .bdew-hourly-card,
.bdew-tpl-gradient-vibrant .bdew-forecast-card {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ─── TEMPLATE 4: Compact Header Bar ───────────────────────────────── */
.bdew-tpl-compact-bar {
    max-width: 440px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.bdew-tpl-compact-bar .bdew-header {
    padding: 10px 16px;
}

.bdew-tpl-compact-bar .bdew-current {
    padding: 14px 16px;
}

/* ─── TEMPLATE 5: Detailed Metro Dashboard ─────────────────────────── */
.bdew-tpl-detailed-metro .bdew-current-details {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ─── Header & Live Clock Bar ──────────────────────────────────────── */
.bdew-header {
    padding: 14px 20px;
    position: relative;
    z-index: 2;
}

.bdew-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bdew-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
}

.bdew-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdew-live-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.bdew-pulse-beacon {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: bdew-pulse 2s infinite;
}

@keyframes bdew-pulse {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70%  { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bdew-btn-refresh {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: transform 0.2s, opacity 0.2s, background-color 0.2s;
}

.bdew-btn-refresh:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.bdew-spin-infinite {
    animation: bdew-spin-full 0.65s linear infinite;
}

@keyframes bdew-spin-full {
    to { transform: rotate(360deg); }
}

/* ─── Location Filter Icon Trigger Button ──────────────────────────── */
.bdew-btn-trigger-filter {
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: var(--bdew-primary);
    padding: 3px 8px;
    border-radius: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
    margin-left: 6px;
    vertical-align: middle;
}

.bdew-btn-trigger-filter:hover {
    background: var(--bdew-primary);
    color: #ffffff;
    border-color: var(--bdew-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.bdew-btn-trigger-filter svg {
    flex-shrink: 0;
}

.bdew-krishi-header .bdew-btn-trigger-filter {
    margin-left: auto;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.bdew-krishi-header .bdew-btn-trigger-filter:hover {
    background: var(--bdew-primary);
    color: #ffffff;
    border-color: var(--bdew-primary);
}

/* ─── Location Filter Drawer (Collapsible) ─────────────────────────── */
.bdew-filter-drawer {
    background: #f8fafc;
    border-bottom: 1.5px solid var(--bdew-border);
    padding: 16px 20px;
    position: relative;
    z-index: 5;
    animation: bdew-fade-down 0.25s ease;
}

@keyframes bdew-fade-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bdew-filter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.bdew-filter-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.bdew-btn-close-filter {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.bdew-btn-close-filter:hover {
    color: #ef4444;
    background: #fee2e2;
}

.bdew-selector-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bdew-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bdew-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bdew-text-muted);
}

.bdew-select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--bdew-border);
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--bdew-text);
    font-size: 0.86rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L.3 3.125l.7-.7L6 7.425l5-5 .7.7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.bdew-select:focus {
    outline: none;
    border-color: var(--bdew-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.bdew-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bdew-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.bdew-btn {
    flex: 1;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bdew-btn-search {
    background: #ffffff;
    color: #334155;
    border: 1.5px solid var(--bdew-border);
}

.bdew-btn-search:hover {
    background: #e2e8f0;
}

.bdew-btn-location {
    background: var(--bdew-primary);
    color: #ffffff;
}

.bdew-btn-location:hover {
    background: var(--bdew-primary-hover);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* ─── Skeleton Shimmer Loading ─────────────────────────────────────── */
.bdew-skeleton {
    padding: 24px 22px;
}

.bdew-skel-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.bdew-skel-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bdew-skel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bdew-skel-bar {
    border-radius: 6px;
    height: 18px;
}

.bdew-skel-lg {
    width: 60%;
    height: 28px;
}

.bdew-skel-sm {
    width: 40%;
}

.bdew-skel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bdew-skel-box {
    height: 65px;
    border-radius: 10px;
}

.bdew-shimmer {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: bdew-shimmer-anim 1.5s infinite;
}

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

/* ─── Error Display ────────────────────────────────────────────────── */
.bdew-error {
    margin: 16px 22px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #b91c1c;
    font-size: 0.88rem;
}

.bdew-error p {
    margin: 0;
}

/* ─── Current Weather Card ─────────────────────────────────────────── */
.bdew-current {
    padding: 18px 22px;
    position: relative;
    z-index: 2;
}

.bdew-current-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.bdew-icon-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdew-svg-weather {
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
}

.bdew-svg-weather:hover {
    transform: scale(1.08);
}

.bdew-current-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bdew-loc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.12rem;
    font-weight: 700;
    flex-wrap: wrap;
}

.bdew-live-pill {
    background: #10b981;
    color: #ffffff;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.bdew-temp-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.bdew-current-temp {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--bdew-primary);
}

.bdew-unit {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bdew-text-muted);
}

.bdew-current-desc {
    font-size: 0.95rem;
    color: var(--bdew-text-muted);
    text-transform: capitalize;
}

/* ─── Farmer Rain Callout Card ─────────────────────────────────────── */
.bdew-rain-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.bdew-rain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.bdew-rain-badge {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0369a1;
}

.bdew-rain-percentage {
    font-size: 0.86rem;
    color: #0c4a6e;
}

.bdew-rain-percentage strong {
    font-size: 1.05rem;
    color: #0284c7;
}

.bdew-rain-desc-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0369a1;
    line-height: 1.4;
}

/* ─── Farmer Advisory Note Box ─────────────────────────────────────── */
.bdew-farmer-tip-box {
    margin-top: 14px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #166534;
    font-weight: 500;
}

/* ─── Metrics / Details Grid ───────────────────────────────────────── */
.bdew-current-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
}

.bdew-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.bdew-detail-icon {
    font-size: 1.1rem;
}

.bdew-detail-label {
    font-size: 0.74rem;
    color: var(--bdew-text-muted);
    font-weight: 600;
}

.bdew-detail-value {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--bdew-text);
}

/* ─── Today's Hourly Forecast Section ──────────────────────────────── */
.bdew-hourly-section {
    padding: 0 22px 14px;
    position: relative;
    z-index: 2;
}

.bdew-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bdew-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bdew-text);
}

.bdew-scroll-hint {
    font-size: 0.74rem;
    color: var(--bdew-text-muted);
    font-weight: 500;
}

.bdew-hourly-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.bdew-hourly-scroll::-webkit-scrollbar {
    height: 4px;
}

.bdew-hourly-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.bdew-hourly-card {
    flex-shrink: 0;
    min-width: 74px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    scroll-snap-align: start;
    transition: transform 0.2s, background-color 0.2s;
}

.bdew-hourly-card:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
}

.bdew-h-time {
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.bdew-h-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdew-h-temp {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.bdew-h-rain {
    font-size: 0.70rem;
    color: #94a3b8;
    font-weight: 500;
}

.bdew-h-rain-active {
    color: #0284c7;
    font-weight: 700;
}

/* ─── 3-Day Forecast Section (3 Distinct Cards) ────────────────────── */
.bdew-forecast {
    padding: 0 22px 18px;
    position: relative;
    z-index: 2;
}

.bdew-forecast-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.bdew-forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bdew-forecast-card {
    background: #f0f9ff;
    border: 1.5px solid #e0f2fe;
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bdew-forecast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.bdew-fc-header {
    margin-bottom: 2px;
}

.bdew-fc-day {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--bdew-primary);
}

.bdew-fc-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdew-fc-temp {
    font-size: 0.98rem;
    font-weight: 700;
}

.bdew-fc-sep {
    margin: 0 2px;
    opacity: 0.4;
}

.bdew-fc-min {
    opacity: 0.65;
    font-weight: 500;
}

.bdew-fc-desc {
    font-size: 0.76rem;
    color: var(--bdew-text-muted);
    text-transform: capitalize;
    line-height: 1.25;
}

.bdew-fc-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    width: 100%;
}

.bdew-fc-rain-pill {
    font-size: 0.74rem;
    color: #0369a1;
    background: rgba(3, 105, 161, 0.08);
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
}

.bdew-fc-hum {
    font-size: 0.72rem;
    color: var(--bdew-text-muted);
    font-weight: 500;
}

/* ─── Footer Brand Credit ──────────────────────────────────────────── */
.bdew-footer-brand {
    text-align: right;
    padding: 8px 22px;
    background: rgba(0, 0, 0, 0.02);
    font-size: 0.70rem;
    color: var(--bdew-text-muted);
    border-top: 1px solid var(--bdew-border);
}

/* ─── Mobile Responsiveness ────────────────────────────────────────── */
@media (max-width: 540px) {
    .bdew-selector-row {
        grid-template-columns: 1fr;
    }

    .bdew-actions {
        flex-direction: column;
    }

    .bdew-current-main {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .bdew-current-info {
        align-items: center;
    }

    .bdew-krishi-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bdew-forecast-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bdew-forecast-card {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 14px;
    }

    .bdew-fc-icon-wrap {
        width: 36px;
        height: 36px;
    }

    .bdew-fc-meta {
        width: auto;
        align-items: flex-end;
    }
}
