/**
 * Bangladesh Premium Weather Frontend Stylesheet
 * Ultra-modern Glassmorphism UI
 * 
 * Developer: Al Amin Ahmad (Juri, Moulvibazar)
 */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

.bd-weather-widget-card {
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow: hidden;
    padding: 24px 20px;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    max-width: 100%;
}

/* Theme Presets */
.bdw-theme-emerald {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.88) 0%, rgba(15, 118, 110, 0.82) 50%, rgba(17, 94, 89, 0.92) 100%);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.bdw-theme-sky {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.88) 0%, rgba(3, 105, 161, 0.82) 50%, rgba(29, 78, 216, 0.9) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.bdw-theme-dark {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.bdw-theme-sunset {
    background: linear-gradient(135deg, rgba(159, 18, 57, 0.88) 0%, rgba(194, 65, 12, 0.82) 50%, rgba(180, 83, 9, 0.9) 100%);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

/* Size Presets (ছোট, সাধারণ ও বড় সাইডবার মোড) */
.bd-weather-widget-card.bdw-size-compact {
    padding: 14px 12px;
}
.bd-weather-widget-card.bdw-size-compact .bdw-location-title {
    font-size: 18px;
}
.bd-weather-widget-card.bdw-size-compact .bdw-main-temp {
    font-size: 38px;
}
.bd-weather-widget-card.bdw-size-compact .bdw-temp-hero {
    margin: 6px 0 10px 0;
}
.bd-weather-widget-card.bdw-size-compact .bdw-metrics-grid {
    gap: 6px;
    margin-bottom: 12px;
}

.bd-weather-widget-card.bdw-size-large {
    padding: 26px 24px;
}
.bd-weather-widget-card.bdw-size-large .bdw-location-title {
    font-size: 26px;
}
.bd-weather-widget-card.bdw-size-large .bdw-main-temp {
    font-size: 64px;
}

/* Header */
.bdw-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.bdw-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #fca5a5;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdw-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: bdwPulse 1.8s infinite;
}

@keyframes bdwPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.bdw-location-title {
    margin: 6px 0 2px 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.bdw-condition-sub {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.82);
}

.bdw-refresh-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bdw-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(180deg);
}

/* Primary Hero Temp */
.bdw-temp-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 16px 0;
}

.bdw-temp-number-wrap {
    display: flex;
    align-items: flex-start;
}

.bdw-main-temp {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bdw-temp-unit {
    font-size: 22px;
    font-weight: 600;
    margin-left: 4px;
    opacity: 0.85;
}

.bdw-hero-icon-wrap {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdw-sun-element {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, #fbbf24 0%, #f59e0b 80%);
    box-shadow: 0 0 24px #f59e0b;
    animation: bdwGlow 3s ease-in-out infinite alternate;
}

@keyframes bdwGlow {
    from { transform: scale(0.96); filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6)); }
    to { transform: scale(1.04); filter: drop-shadow(0 0 22px rgba(245, 158, 11, 0.9)); }
}

.bdw-temp-range-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 10px;
    margin-bottom: 18px;
}

.bdw-dot-sep {
    opacity: 0.4;
}

/* Metrics Grid */
.bdw-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.bdw-metric-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.bdw-metric-icon {
    font-size: 20px;
}

.bdw-metric-data {
    display: flex;
    flex-direction: column;
}

.bdw-metric-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.bdw-metric-value {
    font-size: 14px;
    font-weight: 600;
}

/* Section Headings */
.bdw-section-heading {
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    margin: 18px 0 10px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Hourly Carousel */
.bdw-hourly-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.bdw-hour-card {
    min-width: 60px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    font-size: 12px;
}

.bdw-hour-temp {
    font-weight: 700;
    margin: 4px 0;
}

.bdw-rain-prob {
    font-size: 10px;
    color: #93c5fd;
}

/* Daily List */
.bdw-daily-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bdw-daily-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 13px;
}

.bdw-day-name {
    font-weight: 600;
    width: 25%;
}

.bdw-daily-cond {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.bdw-high-temp {
    font-weight: 700;
}

.bdw-low-temp {
    opacity: 0.6;
    margin-left: 6px;
}

/* Footer */
.bdw-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
}
