/*--------------------------------------------------------------
# MÉTÉO CAMEROUN — NEW PREMIUM DESIGN
--------------------------------------------------------------*/

.modern-meteo-wrapper {
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 1100px;
    margin: 0 auto;
}

/* === SECTION HERO / RECHERCHE === */
.meteo-hero-section {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    animation: fadeIn 1s var(--transition-base);
}

.meteo-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    color: var(--color-text);
}

.meteo-hero-title span {
    color: var(--color-primary);
    position: relative;
}

.meteo-hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-lighter);
    margin-bottom: var(--spacing-xl);
}

.meteo-search-container {
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.meteo-search-field {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.meteo-search-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--glow-md);
    transform: translateY(-2px);
}

.meteo-search-field .search-icon {
    color: var(--color-text-lighter);
    margin-right: 12px;
}

#meteo-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
}

#meteo-search-input:focus {
    outline: none;
}

#meteo-search-clear {
	background: #f0f0f0;
	border: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
    color: var(--color-text);
}

/* Dropdown Search Results */
.meteo-search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    list-style: none;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    border: 1px solid var(--color-border);
    animation: slideInUp 0.3s var(--transition-fast);
}

.meteo-search-results-dropdown li {
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--color-border-light);
}

.meteo-search-results-dropdown li:last-child {
    border-bottom: none;
}

.meteo-search-results-dropdown li:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
    padding-left: 25px;
}

/* === SPLIT LAYOUT (Detailed View) === */
.meteo-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    animation: scaleUp 0.6s var(--transition-base);
}

/* Current Panel (Left) */
.meteo-current-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 32px;
    padding: var(--spacing-xxl);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.current-location .city-name {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    color: var(--color-text);
}

.region-tag {
    display: inline-block;
    padding: 4px 16px;
    background: var(--color-bg-light);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-top: 8px;
}

.current-weather-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.weather-huge-icon {
    font-size: 6rem;
    line-height: 1;
}

.weather-temp-wrap {
    display: flex;
    align-items: flex-start;
}

.temp-value {
    font-size: 7rem;
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -4px;
    color: var(--color-text);
}

.temp-unit {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 10px;
}

.weather-status-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    text-transform: capitalize;
}

.weather-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.stat-box {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-lighter);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
}

/* Forecast Panel (Right) */
.meteo-forecast-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-border);
    border-radius: 32px;
    padding: var(--spacing-xl);
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border-light);
}

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

.forecast-day-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--color-border-light);
    transition: transform 0.2s;
}

.forecast-day-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

.forecast-day-card.today {
    background: var(--color-primary);
    color: #fff;
}

.forecast-day-card.today .f-max, 
.forecast-day-card.today .f-min {
    color: #fff;
}

.f-day { font-weight: 700; width: 80px; }
.f-icon { font-size: 1.75rem; }
.f-temps { display: flex; gap: 15px; font-weight: 800; }
.f-min { opacity: 0.6; }

/* === DEFAULT HOME VIEW === */
.meteo-home-view {
    margin-top: var(--spacing-xxl);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

.title-accent {
    height: 4px;
    flex: 1;
    background: linear-gradient(to right, var(--color-primary), var(--color-bg-light));
    border-radius: 10px;
}

.meteo-top-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.top-city-card {
    background: #fff;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.top-city-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.top-city-name { font-size: 1.5rem; font-weight: 900; }
.top-city-country { font-size: 0.75rem; color: var(--color-primary); font-weight: 700; text-transform: uppercase; }

.top-city-weather { display: flex; align-items: center; gap: 12px; }
.top-city-icon { font-size: 2rem; }
.top-city-temp { font-size: 2.25rem; font-weight: 950; color: var(--color-text); }

.meteo-loader-pulse {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-lighter);
    animation: pulse 2s infinite;
}

/* === RESPONSIVITY === */
@media screen and (max-width: 991px) {
    .meteo-split-layout {
        grid-template-columns: 1fr;
    }
    .meteo-hero-title { font-size: 2.5rem; }
}

@media screen and (max-width: 500px) {
    .current-weather-main { flex-direction: column; gap: 0.5rem; }
    .temp-value { font-size: 5rem; }
    .weather-huge-icon { font-size: 4rem; }
}

/* === DARK MODE === */
body.dark-mode .meteo-hero-title,
body.dark-mode .city-name,
body.dark-mode .temp-value,
body.dark-mode .stat-value,
body.dark-mode .top-city-name,
body.dark-mode .top-city-temp { color: #fff; }

body.dark-mode .meteo-current-panel,
body.dark-mode .top-city-card,
body.dark-mode .forecast-day-card,
body.dark-mode .meteo-search-results-dropdown { 
    background: #111; 
    border-color: #222; 
}

body.dark-mode .meteo-forecast-panel {
    background: rgba(15, 15, 15, 0.6);
    border-color: #222;
}

body.dark-mode .stat-box { background: #1a1a1a; }
body.dark-mode .forecast-day-card:not(.today) { background: #1a1a1a; }
body.dark-mode #meteo-search-input { color: #fff; }
body.dark-mode .meteo-search-field { background: #1a1a1a; border-color: #333; }
