/* Warsaw Weather Plugin - Modern Clean Design */

/* Reset and Base */
* {
    box-sizing: border-box;
}

/* Main Container */
.weather-forecast-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Weather Sections Grid */
.weather-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 0;
}

/* Weather Section Card */
.weather-section-card {
    padding: 32px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    transition: all 0.3s ease;
}

.weather-section-card:nth-child(even) {
    background: #f8fafc;
}

.weather-section-card:last-child {
    border-bottom: none;
}

.weather-section-card:hover {
    background: #f1f5f9;
}

/* Section Title */
.weather-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0 0 24px 0;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.weather-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    border-radius: 2px;
}

/* Loading and Error States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: #f8fafc;
    border-radius: 16px;
    margin: 16px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: #fef2f2;
    border-radius: 16px;
    margin: 16px 0;
    border: 1px solid #fecaca;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.error-state p {
    font-size: 16px;
    font-weight: 600;
    color: #dc2626;
    margin: 0 0 16px 0;
}

.retry-button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-button:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Modern Weather Card for Today/Tomorrow */
.modern-weather-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Weather Main Header */
.weather-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.weather-left {
    flex: 1;
}

.current-temp {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.temp-unit {
    font-size: 36px;
    opacity: 0.8;
}

.weather-desc {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.9;
}

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

.weather-icon-main {
    font-size: 96px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

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

/* Temperature Range */
.temp-range {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.temp-range-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.temp-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.temp-value {
    font-size: 28px;
    font-weight: 800;
}

.temp-value.high {
    color: #fbbf24;
}

.temp-value.low {
    color: #93c5fd;
}

.temp-divider {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 40px;
    border-radius: 1px;
}

/* Weather Details Grid - Beautiful Boxes */
.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 32px;
    background: #f8fafc;
}

.detail-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 140px;
    justify-content: center;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #1e3a8a;
    background: #f8fafc;
}

.detail-icon {
    font-size: 36px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.detail-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.detail-value {
    font-size: 28px;
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1;
}

.detail-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(30, 58, 138, 0.08);
    padding: 6px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Modern Weather Table */
.weather-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-top: 8px;
}

.weather-table thead {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.weather-table th {
    padding: 20px 16px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.weather-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    transition: background-color 0.2s ease;
}

.weather-table tbody tr:hover {
    background: #f8fafc;
}

.weather-table tbody tr:last-child td {
    border-bottom: none;
}

.weather-table .temp-high {
    color: #dc2626;
    font-weight: 800;
}

.weather-table .temp-low {
    color: #2563eb;
    font-weight: 800;
}

.weather-table .weather-condition {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.weather-table .weather-icon {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .weather-forecast-container {
        margin: 16px;
        border-radius: 20px;
    }
    
    .weather-sections-grid {
        grid-template-columns: 1fr;
    }
    
    .weather-section-card {
        padding: 24px;
    }
    
    .weather-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .weather-main {
        padding: 24px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .current-temp {
        font-size: 56px;
    }
    
    .weather-icon-main {
        font-size: 80px;
    }
    
    .temp-range {
        padding: 20px 24px;
    }
    
    .temp-divider {
        height: 40px;
        margin: 0 30px;
    }
    
    .weather-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px;
    }
    
    .detail-card {
        padding: 20px 16px;
        min-height: 120px;
    }
    
    .detail-icon {
        font-size: 32px;
    }
    
    .detail-value {
        font-size: 24px;
    }
    
    .detail-label {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .weather-table {
        font-size: 14px;
    }
    
    .weather-table th,
    .weather-table td {
        padding: 12px 8px;
    }
    
    .weather-table th {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .weather-section-card {
        padding: 20px;
    }
    
    .weather-section-title {
        font-size: 22px;
    }
    
    .current-temp {
        font-size: 48px;
    }
    
    .weather-icon-main {
        font-size: 64px;
    }
    
    .weather-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }
    
    .detail-card {
        padding: 16px;
        min-height: 100px;
    }
    
    .weather-table th,
    .weather-table td {
        padding: 10px 6px;
        font-size: 13px;
    }
}
