/* Meteorologia Brasil v2.1 - Frontend Styles */

.meteo-br-widget { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.4; }
.meteo-br-widget * { box-sizing: border-box; }

/* MODELO CARDS */
.meteo-br-cards { max-width: 100%; overflow-x: auto; }
.meteo-br-cards-container { display: flex; gap: 16px; padding: 8px; }

.meteo-br-card {
    background: #fff; border-radius: 16px; padding: 20px 16px; min-width: 180px; flex: 1;
    text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border: 1px solid #e5e7eb; transition: all 0.3s ease;
}
.meteo-br-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.meteo-br-card-now { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border-color: #7dd3fc; }
.meteo-br-card-alert { animation: card-pulse 2s ease-in-out infinite; }
@keyframes card-pulse { 0%, 100% { box-shadow: 0 2px 12px rgba(0,0,0,0.08); } 50% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3); } }

.meteo-br-card-header { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; margin-bottom: 12px; }
.meteo-br-card-icon { margin-bottom: 8px; }
.meteo-br-card-icon svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.meteo-br-card-temp { font-size: 36px; font-weight: 700; color: #1e293b; line-height: 1; margin-bottom: 4px; }
.meteo-br-card-minmax { font-size: 12px; color: #64748b; margin-bottom: 12px; }
.meteo-br-card-stats { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.meteo-br-uv, .meteo-br-humidity { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: #475569; }
.meteo-br-card-divider { height: 1px; background: #e5e7eb; margin: 12px 0; }
.meteo-br-card-thermo { margin-bottom: 8px; }
.meteo-br-card-message { font-size: 12px; color: #64748b; line-height: 1.4; min-height: 36px; }
.meteo-br-msg-alert { color: #dc2626; font-weight: 600; }

.meteo-br-thermo-alert { animation: thermo-pulse 1s ease-in-out infinite; }
@keyframes thermo-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6)); } }

.meteo-br-fonte { font-size: 10px; color: #94a3b8; text-align: right; padding: 8px 8px 0; }

/* MODELO COMPACT */
.meteo-br-compact { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border: 1px solid #e5e7eb; overflow-x: auto; }
.meteo-br-compact-container { display: flex; min-width: max-content; }
.meteo-br-compact-item { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-right: 1px solid #e5e7eb; flex: 1; min-width: 200px; }
.meteo-br-compact-item:last-child { border-right: none; }
.meteo-br-compact-now { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); }
.meteo-br-compact-day { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #64748b; min-width: 50px; }
.meteo-br-compact-temp { font-size: 24px; font-weight: 700; color: #1e293b; }
.meteo-br-compact-range { font-size: 12px; color: #94a3b8; }
.meteo-br-compact-stats { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #64748b; }

/* MODELO VERTICAL */
.meteo-br-vertical { max-width: 400px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.meteo-br-vertical-now { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #fff; padding: 24px; }
.meteo-br-vertical-now.meteo-br-alert { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.meteo-br-vertical-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.meteo-br-vertical-location { display: flex; align-items: center; gap: 6px; font-size: 14px; opacity: 0.9; }
.meteo-br-vertical-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 20px; }
.meteo-br-vertical-main { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.meteo-br-vertical-temp { font-size: 48px; font-weight: 700; line-height: 1; }
.meteo-br-vertical-minmax { display: flex; gap: 12px; font-size: 14px; opacity: 0.9; margin-top: 4px; }
.meteo-br-vertical-stats { display: flex; flex-direction: column; gap: 6px; }
.meteo-br-stat { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: 0.9; }
.meteo-br-vertical-alert-box { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,0.15); font-size: 13px; }
.meteo-br-vertical-forecast { padding: 20px 24px; }
.meteo-br-vertical-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; margin-bottom: 16px; }
.meteo-br-vertical-day { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.meteo-br-vertical-day:last-child { border-bottom: none; }
.meteo-br-vday-name { font-size: 13px; font-weight: 600; color: #334155; min-width: 100px; }
.meteo-br-vday-temps { display: flex; gap: 8px; font-size: 15px; min-width: 70px; }
.meteo-br-vday-temps strong { color: #1e293b; }
.meteo-br-vday-temps small { color: #94a3b8; }
.meteo-br-vday-stats { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #64748b; flex: 1; }

/* MODELO MINIMAL */
.meteo-br-minimal { display: inline-flex; align-items: center; gap: 20px; background: #fff; padding: 12px 20px; border-radius: 50px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border: 1px solid #e5e7eb; }
.meteo-br-minimal-now { display: flex; align-items: center; gap: 10px; }
.meteo-br-minimal-temp { font-size: 24px; font-weight: 700; color: #1e293b; }
.meteo-br-minimal-city { font-size: 13px; color: #64748b; }
.meteo-br-minimal-stats { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #64748b; }
.meteo-br-minimal-forecast { display: flex; gap: 16px; padding-left: 20px; border-left: 1px solid #e5e7eb; }
.meteo-br-minimal-day { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #64748b; }
.meteo-br-minimal-day span:last-child { font-weight: 600; color: #334155; }

/* ERROR */
.meteo-br-error { background: #fef2f2; color: #991b1b; padding: 16px 24px; border-radius: 12px; text-align: center; border: 1px solid #fecaca; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .meteo-br-cards-container { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
    .meteo-br-card { min-width: 160px; flex: 0 0 auto; }
    .meteo-br-vertical { max-width: 100%; }
    .meteo-br-minimal { flex-wrap: wrap; border-radius: 16px; justify-content: center; }
    .meteo-br-minimal-forecast { border-left: none; border-top: 1px solid #e5e7eb; padding-left: 0; padding-top: 12px; width: 100%; justify-content: center; }
}

/* Scrollbar */
.meteo-br-cards-container::-webkit-scrollbar, .meteo-br-compact::-webkit-scrollbar { height: 6px; }
.meteo-br-cards-container::-webkit-scrollbar-track, .meteo-br-compact::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.meteo-br-cards-container::-webkit-scrollbar-thumb, .meteo-br-compact::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
