/* CSS pour le Widget Météo avec couleurs adaptées à la charte de motochill.fr */

/* Container principal du widget */
.meteo-tabs-widget {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(to bottom, #1a1e2c, #2d3748); /* Fond sombre adapté au thème de motochill */
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

/* En-tête du widget */
.meteo-header {
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meteo-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* Système d'onglets */
.meteo-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.15);
}

.meteo-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.meteo-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.meteo-tab-btn.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff6b00; /* Orange pour l'onglet actif comme le thème motochill */
    position: relative;
}

.meteo-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background-color: #ff6b00; /* Indicateur orange */
    border-radius: 3px 3px 0 0;
}

/* Contenu des onglets */
.meteo-tab-content {
    display: none;
    padding: 15px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contenu météo actuelle */
.meteo-content {
    padding: 5px 0;
}

.meteo-main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.meteo-icon {
    width: 80px;
    height: 80px;
}

.meteo-icon img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.meteo-temp {
    font-size: 42px;
    font-weight: 700;
    margin-left: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.meteo-description {
    text-align: center;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.meteo-temp-details {
    display: flex;
    justify-content: space-around;
    font-size: 14px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.meteo-quick-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meteo-detail {
    font-size: 15px;
    display: flex;
    align-items: center;
}

.meteo-detail i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    color: #ff6b00; /* Icônes en orange */
}

/* Contrôles de navigation des prévisions */
.meteo-forecast-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 5;
}

/* Styles des flèches de navigation */
.forecast-arrow {
    background-color: #ff6b00 !important; /* Boutons orange */
    border: none !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    margin: 0 5px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.forecast-arrow:hover {
    background-color: #e86000 !important; /* Orange foncé au survol */
    transform: scale(1.05) !important;
}

.forecast-arrow:active {
    transform: scale(0.95) !important;
}

/* Flèches alternatives si besoin */
.forecast-arrow.alt-arrow::before {
    content: "◀" !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.forecast-arrow.next-forecast.alt-arrow::before {
    content: "▶" !important;
}

/* État désactivé des flèches */
.forecast-arrow.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background-color: #7a7a7a !important;
}

/* Pagination */
.forecast-pagination {
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
}

/* Conteneur du carrousel des prévisions */
.meteo-forecast-carousel {
    position: relative;
    min-height: 250px;
}

/* Cartes de prévisions */
.forecast-detail-card {
    display: none;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    animation: fadeOut 0.3s ease;
}

.forecast-detail-card.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.forecast-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.forecast-time {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.forecast-day {
    font-size: 16px;
    opacity: 0.8;
    align-self: flex-end;
}

.forecast-card-main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.forecast-icon {
    width: 70px;
    height: 70px;
}

.forecast-icon img {
    width: 100%;
    height: 100%;
}

.forecast-temp {
    font-size: 32px;
    font-weight: 700;
    margin-left: 15px;
}

.forecast-card-description {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
}

.forecast-card-details {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.forecast-detail-item {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.forecast-detail-item i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
    color: #ff6b00; /* Icônes orange */
}

/* Onglet détails */
.meteo-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.meteo-detail-item {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease;
}

.meteo-detail-item:hover {
    transform: translateY(-3px);
    background-color: rgba(0, 0, 0, 0.25);
}

.detail-icon {
    font-size: 20px;
    margin-bottom: 8px;
    color: #ff6b00; /* Icônes orange */
}

.detail-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
}

/* Messages d'erreur */
.meteo-error {
    text-align: center;
    padding: 20px;
    background: #e74c3c;
}

.meteo-error-message {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Adaptation mobile */
@media (max-width: 480px) {
    .meteo-tabs-widget {
        max-width: 100%;
    }
    
    .meteo-temp {
        font-size: 36px;
    }
    
    .meteo-description {
        font-size: 18px;
    }
    
    .meteo-tab-btn {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .forecast-arrow {
        width: 30px !important;
        height: 30px !important;
    }
}