* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Roboto', 'Droid Sans', 'Segoe UI', sans-serif;
    color: #eef7ff;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 2s ease;
}

#app {
    height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
}

#view {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 10px 14px;
}

.meteo-container {
    width: 100%;
    max-width: 900px;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.top-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(34,211,255,0.1);
}

.time-block {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
}

.center-block {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 420px;
}

.weather-block {
    text-align: right;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
}

.big-time {
    font-size: 58px;
    font-weight: 700;
    color: #22d3ff;
    font-family: monospace;
    line-height: 1;
    letter-spacing: -2px;
}

.big-date {
    font-size: 15px;
    color: #6e859e;
    margin-top: 3px;
}
.holiday-banner {
    text-align: center;
    width: 420px;
    display: inline-block;
}

.holiday-item {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    width: 420px;
    line-height: 1.4;
    border: 1px solid;
    word-wrap: break-word;
    white-space: normal;
}
.holiday-weekend {
    background: rgba(255, 91, 116, 0.15);
    color: #ff5b74;
    border-color: rgba(255, 91, 116, 0.3);
}

.holiday-workday {
    background: rgba(34, 211, 255, 0.1);
    color: #22d3ff;
    border-color: rgba(34, 211, 255, 0.2);
}
.weather-block {
    text-align: right;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
}

.main-temp {
    font-size: 72px;
    font-weight: 700;
    color: #ffb84d;
    line-height: 1;
    margin-top: -2px;
}

.weather-details {
    font-size: 14px;
    color: #a9bfd5;
    margin-top: 4px;
}

.weather-details span {
    margin-left: 10px;
}

.main-location {
    font-size: 13px;
    color: #6e859e;
    margin-top: 3px;
}

/* ===== HOLIDAY BANNER ===== */

.holiday-weekend {
    background: rgba(255, 91, 116, 0.15);
    color: #ff5b74;
    border-color: rgba(255, 91, 116, 0.3);
    text-shadow: 0 0 10px rgba(255, 91, 116, 0.3);
}

.holiday-workday {
    background: rgba(34, 211, 255, 0.1);
    color: #22d3ff;
    border-color: rgba(34, 211, 255, 0.2);
}

/* ===== ANIMATED WEATHER ICONS ===== */
.weather-icon {
    width: 56px;
    height: 56px;
    display: inline-block;
    position: relative;
}

.sun-rays {
    width: 56px;
    height: 56px;
    position: relative;
    -webkit-animation: rotate 10s linear infinite;
    animation: rotate 10s linear infinite;
}

.sun-core {
    width: 28px;
    height: 28px;
    background: #ffb84d;
    border-radius: 50%;
    position: absolute;
    top: 14px;
    left: 14px;
    box-shadow: 0 0 20px rgba(255,184,77,0.6);
}

.sun-rays:before, .sun-rays:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 2px;
    background: rgba(255,184,77,0.4);
    margin: -1px 0 0 -28px;
}

.sun-rays:after {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

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

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

.cloud-sun-wrap {
    position: relative;
    width: 56px;
    height: 56px;
}

.sun-rays-small {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    -webkit-animation: rotate 12s linear infinite;
    animation: rotate 12s linear infinite;
}

.sun-core-small {
    width: 18px;
    height: 18px;
    background: #ffb84d;
    border-radius: 50%;
    position: absolute;
    top: 7px;
    left: 7px;
}

.cloud-part {
    width: 36px;
    height: 20px;
    background: #a9bfd5;
    border-radius: 20px;
    position: absolute;
    bottom: 10px;
    left: 8px;
    opacity: 0.9;
}

.cloud-part:before {
    content: '';
    width: 22px;
    height: 22px;
    background: #a9bfd5;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: 6px;
}

.cloud-full {
    position: relative;
    width: 56px;
    height: 56px;
}

.cloud-part2 {
    width: 28px;
    height: 16px;
    background: #8a9eb3;
    border-radius: 14px;
    position: absolute;
    bottom: 14px;
    right: 6px;
}

.fog-lines {
    position: absolute;
    top: 18px;
    left: 8px;
}

.fog-lines div {
    width: 40px;
    height: 3px;
    background: rgba(169,191,213,0.5);
    margin: 5px 0;
    border-radius: 2px;
    -webkit-animation: fog-move 3s ease-in-out infinite;
    animation: fog-move 3s ease-in-out infinite;
}

.fog-lines div:nth-child(2) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; width: 32px; }
.fog-lines div:nth-child(3) { -webkit-animation-delay: 1s; animation-delay: 1s; width: 36px; }

@-webkit-keyframes fog-move {
    0%, 100% { -webkit-transform: translateX(0); opacity: 0.5; }
    50% { -webkit-transform: translateX(8px); opacity: 0.8; }
}

@keyframes fog-move {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(8px); opacity: 0.8; }
}

.rain-drops {
    position: absolute;
    bottom: 4px;
    left: 14px;
}

.rain-drops div {
    width: 2px;
    height: 8px;
    background: #4db8ff;
    border-radius: 1px;
    display: inline-block;
    margin: 0 3px;
    -webkit-animation: rain-fall 1s linear infinite;
    animation: rain-fall 1s linear infinite;
}

.rain-drops div:nth-child(2) { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }
.rain-drops div:nth-child(3) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; }
.rain-drops div:nth-child(4) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; }

.rain-drops.fast div {
    -webkit-animation-duration: 0.6s;
    animation-duration: 0.6s;
}

@-webkit-keyframes rain-fall {
    0% { -webkit-transform: translateY(0); opacity: 1; }
    100% { -webkit-transform: translateY(14px); opacity: 0; }
}

@keyframes rain-fall {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

.snow-flakes {
    position: absolute;
    bottom: 2px;
    left: 12px;
}

.snow-flakes div {
    display: inline-block;
    font-size: 10px;
    color: #fff;
    margin: 0 4px;
    -webkit-animation: snow-fall 2s linear infinite;
    animation: snow-fall 2s linear infinite;
}

.snow-flakes div:nth-child(2) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; }
.snow-flakes div:nth-child(3) { -webkit-animation-delay: 1.2s; animation-delay: 1.2s; }

@-webkit-keyframes snow-fall {
    0% { -webkit-transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { -webkit-transform: translateY(16px) rotate(180deg); opacity: 0; }
}

@keyframes snow-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(16px) rotate(180deg); opacity: 0; }
}

.cloud-full.dark .cloud-part,
.cloud-full.dark .cloud-part:before {
    background: #5a6a7a;
}

.lightning {
    position: absolute;
    bottom: 2px;
    left: 22px;
    font-size: 20px;
    -webkit-animation: flash 1.5s infinite;
    animation: flash 1.5s infinite;
}

@-webkit-keyframes flash {
    0%, 90%, 100% { opacity: 0; }
    92%, 96% { opacity: 1; }
}

@keyframes flash {
    0%, 90%, 100% { opacity: 0; }
    92%, 96% { opacity: 1; }
}

/* ===== INFO ROW (Sun + Moon) ===== */
.info-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 8px 12px;
    background: rgba(13,23,37,0.5);
    border: 1px solid rgba(34,211,255,0.06);
    border-radius: 10px;
    font-size: 14px;
    color: #a9bfd5;
    margin: 6px 0;
}

/* ===== GEO ROW (Kp + Update) ===== */
.geo-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 8px 12px;
    background: rgba(13,23,37,0.6);
    border: 1px solid rgba(34,211,255,0.08);
    border-radius: 10px;
    font-size: 15px;
    margin: 6px 0;
}

.geo-item {
    color: #a9bfd5;
}

.kp-dot {
    font-size: 20px;
    vertical-align: middle;
}

.kp-storm {
    -webkit-animation: pulse-red 0.8s infinite;
    animation: pulse-red 0.8s infinite;
}

@-webkit-keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* ===== CHART ===== */
.chart-block {
    background: rgba(13,23,37,0.5);
    border: 1px solid rgba(34,211,255,0.06);
    border-radius: 10px;
    padding: 8px 12px;
    margin: 6px 0;
}

.chart-title {
    font-size: 13px;
    color: #6e859e;
    margin-bottom: 4px;
}

.chart-labels {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    font-size: 9px;
    color: #6e859e;
    margin-top: 2px;
}

.chart-labels span {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    text-align: center;
}

/* ===== FORECAST ===== */
.forecast-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.forecast-card {
    background: rgba(13,23,37,0.7);
    border: 1px solid rgba(34,211,255,0.1);
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    width: 30%;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 100px;
    max-width: 140px;
}

.forecast-day {
    font-size: 13px;
    color: #a9bfd5;
    font-weight: 600;
}

.forecast-icon {
    width: 44px;
    height: 44px;
    margin: 4px auto;
    -webkit-transform: scale(0.75);
    transform: scale(0.75);
}

.forecast-temp {
    font-size: 24px;
    font-weight: 700;
    color: #ffb84d;
}

.forecast-min {
    font-size: 14px;
    color: #6e859e;
}

.forecast-desc {
    font-size: 11px;
    color: #6e859e;
    margin-top: 2px;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(34,211,255,0.2); border-radius: 2px; }
