/* Weather Records Styles */

.wu-records {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.wu-records-header {
    text-align: center;
    margin-bottom: 30px;
}

.wu-records-header h2 {
    font-size: 36px;
    color: #333;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.wu-records-header h2 i {
    font-size: 32px !important;
    color: #f59e0b;
}

/* Tabs */
.wu-records-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.wu-tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.wu-tab-button:hover {
    color: #333;
}

.wu-tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Tab Content */
.wu-records-tab-content {
    display: none;
}

.wu-records-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Year Section */
.wu-year-section {
    margin-bottom: 60px;
}

.wu-year-section:last-child {
    margin-bottom: 0;
}

.wu-year-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wu-year-title i {
    font-size: 24px !important;
    color: #2563eb;
}

/* Records Grid */
.wu-records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* Record Card */
.wu-record-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.wu-record-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.wu-record-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Card Variants */
.wu-record-hot::before {
    background: linear-gradient(90deg, #dc2626, #f59e0b);
}

.wu-record-cold::before {
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.wu-record-rain::before {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.wu-record-wind::before {
    background: linear-gradient(90deg, #10b981, #14b8a6);
}

.wu-record-gust::before {
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.wu-record-pressure-high::before {
    background: linear-gradient(90deg, #f59e0b, #eab308);
}

.wu-record-pressure-low::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

/* Icon */
.wu-record-icon {
    font-size: 56px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.wu-record-icon i {
    font-size: 56px !important;
    line-height: 1;
}

/* Icon Colors */
.wu-record-hot .wu-record-icon i { color: #dc2626; }
.wu-record-cold .wu-record-icon i { color: #0ea5e9; }
.wu-record-rain .wu-record-icon i { color: #3b82f6; }
.wu-record-wind .wu-record-icon i { color: #10b981; }
.wu-record-gust .wu-record-icon i { color: #8b5cf6; }
.wu-record-pressure-high .wu-record-icon i { color: #f59e0b; }
.wu-record-pressure-low .wu-record-icon i { color: #6366f1; }

/* Content */
.wu-record-content {
    flex: 1;
}

.wu-record-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wu-record-value {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.wu-unit {
    font-size: 24px;
    font-weight: 600;
    color: #64748b;
    margin-left: 4px;
}

.wu-record-date {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wu-record-date i {
    font-size: 14px !important;
    color: #64748b;
    gap: 6px;
}

/* Loading State */
.wu-records-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.wu-records-loading::after {
    content: '⏳';
    display: block;
    font-size: 48px;
    margin-top: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 768px) {
    .wu-records {
        padding: 20px 15px;
    }

    .wu-records-header h2 {
        font-size: 28px;
    }

    .wu-records-grid {
        grid-template-columns: 1fr;
    }

    .wu-record-value {
        font-size: 36px;
    }

    .wu-record-icon {
        font-size: 48px;
    }

    .wu-tab-button {
        font-size: 14px;
        padding: 10px 16px;
    }
}
