body {
margin: 0;
background: transparent;
font-family: "Segoe UI", sans-serif;
transition: background 0.6s ease;
}

.info-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.4rem 2rem;
width: 100%;
box-sizing: border-box;

background: linear-gradient(90deg, #fff7d6 0%, #ffe4b5 50%, #ffd1a1 100%);
border-radius: 18px;
box-shadow: 0 10px 35px rgba(0,0,0,0.12);

opacity: 0;
animation: fadeIn 1.2s ease forwards;
flex-wrap: wrap;
}

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

.time-block {
text-align: left;
}

.time {
font-size: 3rem;
font-weight: 700;
color: #4a3b00;
}

.date {
font-size: 1.2rem;
color: rgba(60, 45, 0, 0.8);
}

.center-wrapper {
display: flex;
flex-direction: column;
align-items: center;
width: 140px;
}

.center-icon {
width: 140px;
height: 140px;
display: flex;
align-items: center;
justify-content: center;
}

.greeting-text {
margin-top: 6px;
font-size: 1.3rem;
font-weight: 600;
color: #4a3b00;
text-align: center;
opacity: 0.9;
white-space: nowrap;
}

/* --- ICONS --- */

.sun {
width: 90px;
height: 90px;
background: #ffcc66;
border-radius: 50%;
position: relative;
animation: spin 18s linear infinite;
box-shadow: 0 0 20px #ffcc66aa;
transition: filter 0.4s ease, box-shadow 0.4s ease;
}

.sun::before {
content: "";
position: absolute;
inset: -15px;
border-radius: 50%;
border: 6px solid #ffcc6688;
}

@keyframes spin {
from { transform: rotate(0deg); }
to   { transform: rotate(360deg); }
}

.cloud {
width: 110px;
height: 60px;
background: #ffffffcc;
border-radius: 40px;
position: relative;
animation: float 4s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
content: "";
position: absolute;
background: #ffffffcc;
border-radius: 50%;
}

.cloud::before {
width: 60px;
height: 60px;
left: -20px;
top: -20px;
}

.cloud::after {
width: 70px;
height: 70px;
right: -15px;
top: -25px;
}

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

.rain {
position: relative;
}

.drop {
width: 6px;
height: 18px;
background: #7ab8ff;
border-radius: 3px;
position: absolute;
bottom: -20px;
left: 50%;
animation: drop 0.8s linear infinite;
}

@keyframes drop {
0% { transform: translate(-50%, 0); opacity: 1; }
100% { transform: translate(-50%, 20px); opacity: 0; }
}

.snowflake {
font-size: 60px;
color: #b3e5fc;
animation: snow 3s ease-in-out infinite;
}

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

.fog {
width: 100px;
height: 60px;
position: relative;
}

.fog div {
height: 8px;
background: #ffffff99;
border-radius: 4px;
margin: 6px 0;
animation: fogMove 3s ease-in-out infinite;
}

@keyframes fogMove {
0%, 100% { transform: translateX(0px); }
50%      { transform: translateX(6px); }
}

.weather-right {
display: flex;
flex-direction: column;
align-items: flex-end;
}

.location-label {
font-size: 0.9rem;
color: rgba(60, 45, 0, 0.7);
margin-bottom: 0.2rem;
}

.temp {
font-size: 2.6rem;
font-weight: 700;
color: #4a3b00;
}

.location {
font-size: 1.2rem;
color: rgba(60, 45, 0, 0.8);
}

/* --- MINI VERSION B --- */
@media (max-width: 600px) {
.info-bar {
  padding: 1rem;
  flex-direction: column;
  gap: 0.8rem;
}

.time { font-size: 2rem; }
.date { font-size: 1rem; }

.center-icon { width: 80px; height: 80px; }
.sun { width: 55px; height: 55px; }
.cloud { width: 70px; height: 40px; }
.snowflake { font-size: 40px; }

.greeting-text { font-size: 1rem; }
.temp { font-size: 2rem; }
.location { font-size: 1rem; }
.location-label { font-size: 0.8rem; }

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

/* --- NIGHT MODE --- */
.night-mode .info-bar {
background: linear-gradient(90deg, #2c2c2c 0%, #1f1f1f 50%, #141414 100%);
box-shadow: 0 10px 35px rgba(0,0,0,0.6);
}

.night-mode .time,
.night-mode .date,
.night-mode .greeting-text,
.night-mode .temp,
.night-mode .location,
.night-mode .location-label {
color: #f5f5f5 !important;
}

.night-mode .sun {
filter: brightness(0.6);
box-shadow: 0 0 25px #88aaffaa;
}

/* --- MIDNIGHT BLUE MODE --- */
.midnight-mode .info-bar {
background: linear-gradient(90deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* --- SUNSET MODE --- */
.sunset-mode .info-bar {
background: linear-gradient(90deg, #ffb199 0%, #ff0844 100%);
}

/* --- WEATHER BLEND (20–30%) --- */
.weather-sun    { background: rgba(255, 220, 150, 0.25); }
.weather-cloud  { background: rgba(200, 220, 255, 0.25); }
.weather-rain   { background: rgba(150, 180, 255, 0.25); }
.weather-snow   { background: rgba(180, 230, 255, 0.25); }
.weather-fog    { background: rgba(255, 255, 255, 0.15); }