/**
 * Weather Widget Complete Styles - Widget Meteorológico Completo
 * Widget completo con toda la información meteorológica disponible
 *
 * @package Playas_Fluviales
 */

.weather-widget-complete {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.weather-widget-complete::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd002, #d5102b, #9c2f88);
    border-radius: 16px 16px 0 0;
}

/* === TÍTULO PRINCIPAL === */
.weather-main-title {
    margin-bottom: 12px;
    padding-top: 4px;
}

.weather-main-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
}

/* === HEADER COMPLETO === */
.weather-header-complete {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 2px;
}

.weather-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.weather-location svg {
    color: #d5102b;
}

.weather-timestamp {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === CLIMA ACTUAL === */
.weather-current-complete {
    margin-bottom: 20px;
}

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

.weather-icon-main {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon-main svg {
    width: 88px !important;
    height: 88px !important;
}

.current-temp-desc {
    flex: 1;
}

.temperature-huge {
    font-size: 2.4rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 4px;
}

.temp-unit {
    font-size: 1.6rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 4px;
}

.weather-description-huge {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.feels-like-main {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

/* === MÉTRICAS PRINCIPALES === */
.weather-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.metric-card {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.metric-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    padding: 2px;
}

.metric-icon svg {
    color: #64748b;
    width: 20px;
    height: 20px;
}

.metric-info {
    flex: 1;
    min-width: 0;
}

.metric-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === PRONÓSTICO POR HORAS === */
.weather-hourly-complete {
    margin-bottom: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.hourly-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hourly-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    width: 100%;
    box-sizing: border-box;
}

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

.hourly-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

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

.hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    min-width: 70px;
    flex-shrink: 0;
    text-align: center;
    box-sizing: border-box;
}

.hourly-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.hourly-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hourly-icon svg {
    width: 36px !important;
    height: 36px !important;
}

.hourly-temp {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

.hourly-rain {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 500;
}

.hourly-rain svg {
    color: #3b82f6;
}

/* === PRONÓSTICO DIARIO REDISEÑADO === */
.weather-forecast-complete {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-bottom: 12px;
}

.forecast-title-complete {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forecast-day-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.forecast-day-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.day-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.day-date-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 45px;
}

.day-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.day-date {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 500;
}

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

.day-icon-column svg {
    width: 28px !important;
    height: 28px !important;
}

.day-description-column {
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
    flex: 1;
}

.day-info-right {
    display: flex;
    align-items: center;
}

.day-temps-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    min-width: 50px;
}

.temp-max {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.temp-min {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1;
}

.day-metrics-column {
    display: flex;
    gap: 8px;
    align-items: center;
}

.day-metric {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 500;
}

.day-metric svg {
    color: #64748b;
    flex-shrink: 0;
    width: 12px !important;
    height: 12px !important;
}

/* === FOOTER === */
.weather-footer-complete {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    text-align: center;
}

.weather-footer-complete span {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === ANIMACIONES CSS PARA ICONOS === */
.weather-icon .sun-rays {
    animation: rotate 8s linear infinite;
    transform-origin: center;
}

.weather-icon .cloud-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .weather-widget-complete {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .current-main {
        gap: 16px;
    }
    
    .weather-icon-main {
        width: 95px;
        height: 95px;
    }
    
    .weather-icon-main svg {
        width: 75px !important;
        height: 75px !important;
    }
    
    .temperature-huge {
        font-size: 2.2rem;
    }
    
    .temp-unit {
        font-size: 1.4rem;
    }
    
    .weather-description-huge {
        font-size: 1rem;
    }
    
    .weather-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .metric-card {
        padding: 10px;
        gap: 8px;
    }
    
    .metric-icon {
        width: 36px;
        height: 36px;
    }
    
    .metric-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .metric-value {
        font-size: 0.85rem;
    }
    
    .metric-label {
        font-size: 0.65rem;
    }
    
    .hourly-scroll {
        gap: 8px;
    }
    
    .hourly-item {
        min-width: 70px;
        padding: 8px 6px;
    }
    
    .forecast-day-card {
        padding: 8px 10px;
    }
    
    .day-info-left {
        gap: 8px;
    }
    
    .day-info-right {
        gap: 8px;
    }
    
    .day-icon-column {
        width: 28px;
        height: 28px;
    }
    
    .day-icon-column svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .day-metrics-column {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .weather-widget-complete {
        padding: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .current-main {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .weather-icon-main {
        width: 85px;
        height: 85px;
        align-self: center;
    }
    
    .weather-icon-main svg {
        width: 68px !important;
        height: 68px !important;
    }
    
    .temperature-huge {
        font-size: 1.8rem;
    }
    
    .weather-metrics-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .metric-card {
        padding: 8px;
        gap: 10px;
    }
    
    .metric-icon {
        width: 32px;
        height: 32px;
    }
    
    .metric-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .metric-value {
        font-size: 0.8rem;
    }
    
    .metric-label {
        font-size: 0.6rem;
    }
    
    .hourly-item {
        min-width: 60px;
        padding: 6px 4px;
    }
    
    .hourly-icon {
        width: 36px;
        height: 36px;
    }
    
    .hourly-icon svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    .forecast-day-card {
        padding: 6px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .day-info-left {
        width: 100%;
        gap: 6px;
    }
    
    .day-info-right {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
    }
    
    .day-icon-column {
        width: 24px;
        height: 24px;
    }
    
    .day-icon-column svg {
        width: 20px !important;
        height: 20px !important;
    }
} 