/* MeteoAlarm Provider Styles */
/**
 * Wunderkammer Weather Plugin - MeteoAlarm Alerts CSS - meteoalarm.css
 * Copyright (c) 2025 Giuseppe Fraccalvieri. All rights reserved.
 * Licensed under proprietary license - See LICENSE.txt
 * Unauthorized use is strictly prohibited.
 */

/* Main Content Container */
.ww-meteoalarm-content {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Provider Header */
.ww-provider-header {
    margin-bottom: 20px;
    text-align: center;
}

.ww-provider-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.ww-provider-subtitle {
    font-size: 16px;
    color: #666;
}

/* Alerts Section */
.ww-meteoalarm-alerts {
    margin-bottom: 20px;
}

/* No Alerts State */
.ww-no-alerts {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #28a745;
}

.ww-no-alerts-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 10px;
}

.ww-no-alerts-text {
    font-size: 18px;
    color: #333;
}

/* Alert Items */
.ww-alert-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.ww-alert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Alert Severity Colors - MeteoAlarm Official */
.ww-alert-yellow {
    background-color: #fff3cd;
    border-left-color: #ffda22;
}

.ww-alert-yellow .ww-alert-title {
    color: #856404;
}

.ww-alert-orange {
    background-color: #ffe5d0;
    border-left-color: #ff9300;
}

.ww-alert-orange .ww-alert-title {
    color: #8b4513;
}

.ww-alert-red {
    background-color: #f8d7da;
    border-left-color: #ff0000;
}

.ww-alert-red .ww-alert-title {
    color: #721c24;
}

/* Alert Header */
.ww-alert-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ww-alert-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    flex-shrink: 0;
}

.ww-alert-title-section {
    flex: 1;
}

.ww-alert-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Alert Details */
.ww-alert-time {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 55px;
}

.ww-alert-valid {
    font-weight: 500;
}

.ww-alert-area {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    padding-left: 55px;
}

.ww-alert-area-label {
    font-weight: 500;
}

.ww-alert-description {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
    padding-left: 55px;
}

.ww-alert-instruction {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    padding: 10px 15px 10px 55px;
    background: rgba(0,0,0,0.03);
    border-radius: 4px;
    margin-top: 10px;
}

.ww-alert-instruction strong {
    color: #333;
}

/* Map Button Section */
.ww-meteoalarm-map-section {
    text-align: center;
    margin: 20px 0;
}

.ww-meteoalarm-map-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ww-meteoalarm-map-button:hover {
    background: #0052a3;
}

.ww-meteoalarm-map-button .ww-icon {
    font-size: 20px;
}

/* Attribution */
.ww-meteoalarm-attribution {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.ww-meteoalarm-attribution a {
    color: #0066cc;
    text-decoration: none;
}

.ww-meteoalarm-attribution a:hover {
    text-decoration: underline;
}

.ww-attribution-time {
    margin-top: 5px;
    font-style: italic;
}

/* Loading State */
.ww-loading {
    text-align: center;
    padding: 40px;
}

.ww-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: ww-spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Error State */
.ww-error {
    text-align: center;
    padding: 40px 20px;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.ww-error-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.ww-error-message {
    font-size: 16px;
    color: #721c24;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ww-meteoalarm-content {
        padding: 15px;
    }
    
    .ww-provider-title {
        font-size: 20px;
    }
    
    .ww-provider-subtitle {
        font-size: 14px;
    }
    
    .ww-alert-item {
        padding: 12px;
    }
    
    .ww-alert-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
    
    .ww-alert-title {
        font-size: 16px;
    }
    
    .ww-alert-time,
    .ww-alert-area,
    .ww-alert-description,
    .ww-alert-instruction {
        padding-left: 42px;
        font-size: 13px;
    }
    
    .ww-meteoalarm-map-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .ww-alert-header {
        flex-wrap: wrap;
    }
    
    .ww-alert-time,
    .ww-alert-area,
    .ww-alert-description,
    .ww-alert-instruction {
        padding-left: 0;
    }
}