/* weatherinside.css — ПОЛНЫЙ, С night-mode + КРАСИВЫЙ ДИЗАЙН */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.weather-container {
    max-width: 1400px;
    margin: 40px auto;
    background: #fafafa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.location-header h1 {
    font-size: 34px;
    font-weight: 600;
    color: #001a33;
    text-align: center;
    margin-bottom: 10px;
}

.region-name {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.forecast-nav {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.forecast-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.forecast-nav a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #005566;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.forecast-nav a:hover {
    background: #e6f0fa;
    color: #003366;
}

.forecast-nav a.active {
    background: #005566;
    color: #fff;
    font-weight: 600;
}

/* === ОБЩИЙ СТИЛЬ ДЛЯ СЕКЦИЙ === */
.forecast-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #001a33;
    text-align: center;
    margin-bottom: 20px;
}

/* === CURRENT === */
.current-beautiful {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.current-main {
    text-align: center;
}

.current-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.current-temp {
    font-size: 72px;
    font-weight: 300;
    color: #001a33;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.temp-value { font-size: 1em; }
.temp-unit { font-size: 0.5em; color: #005566; }

.current-condition {
    font-size: 24px;
    font-weight: 500;
    color: #005566;
    margin: 10px 0;
}

.current-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-label { color: #666; }
.detail-value { color: #001a33; font-weight: 600; }

.current-sun {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sun-item { text-align: center; }
.sun-label { display: block; font-size: 14px; color: #666; margin-bottom: 5px; }
.sun-value { font-size: 18px; font-weight: 600; color: #001a33; }

/* === HOURLY === */
.sun-info {
    text-align: center;
    margin-bottom: 20px;
    color: #005566;
    font-weight: 500;
    font-size: 15px;
}

.sun-info span {
    margin: 0 15px;
}

.hourly-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scrollbar-width: thin;
}

.hour-card {
    flex: 0 0 160px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    min-width: 160px;
}

.hour-time {
    font-size: 16px;
    font-weight: 600;
    color: #001a33;
    margin-bottom: 10px;
}

.hour-card img {
    width: 50px;
    height: 50px;
    margin: 10px 0;
}

.hour-temp {
    font-size: 22px;
    font-weight: 500;
    color: #001a33;
    margin: 8px 0;
}

.hour-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.hour-detail {
    display: flex;
    justify-content: space-between;
}

.hour-detail .detail-label { color: #777; }
.hour-detail .detail-value { font-weight: 600; color: #001a33; }

/* === DAILY КАРТОЧКИ (tomorrow, 5days, week, 10days, 2weeks) === */
.daily-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.daily-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.daily-card:hover {
    transform: translateY(-5px);
}

.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.daily-date {
    font-size: 18px;
    font-weight: 600;
    color: #001a33;
}

.daily-card img {
    width: 50px;
    height: 50px;
}

.daily-condition {
    font-size: 16px;
    font-weight: 500;
    color: #005566;
    margin-bottom: 8px;
}

.daily-temp {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 15px;
}

.temp-max {
    font-weight: 600;
    color: #001a33;
}

.temp-min {
    color: #666;
}

.daily-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
}

.daily-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    color: #777;
    font-size: 12px;
}

.detail-value {
    font-weight: 600;
    color: #001a33;
}

/* === НОЧЬ — ИКОНКИ ТЕМНЕЕ === */
.night-mode {
    filter: brightness(0.6) contrast(1.2);
    opacity: 0.9;
}

/* current */
.current-icon.night-mode {
    filter: brightness(0.6) contrast(1.2);
}

/* hourly */
.hour-card img.night-mode {
    filter: brightness(0.6) contrast(1.2);
}

/* daily */
.daily-card img.night-mode {
    filter: brightness(0.6) contrast(1.2);
}

/* === АДАПТИВ === */
@media (max-width: 992px) {
    .current-beautiful { grid-template-columns: 1fr; text-align: center; }
    .current-temp { font-size: 60px; }
    .current-icon { width: 100px; height: 100px; }
    .daily-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .forecast-nav a { padding: 8px 14px; font-size: 13px; }
    .hour-card { flex: 0 0 140px; min-width: 140px; }
    .hour-card img { width: 45px; height: 45px; }
}

@media (max-width: 576px) {
    .weather-container { padding: 20px; margin: 15px; }
    .location-header h1 { font-size: 26px; }
    .current-temp { font-size: 48px; }
    .current-icon { width: 80px; height: 80px; }
    .current-condition { font-size: 20px; }
    .hour-card { flex: 0 0 120px; padding: 12px; }
    .hour-card img { width: 40px; height: 40px; }
    .hour-time { font-size: 14px; }
    .hour-temp { font-size: 20px; }
    .daily-card { padding: 15px; }
    .daily-date { font-size: 15px; }
    .daily-condition { font-size: 15px; }
    .daily-card img { width: 40px; height: 40px; }
}

/* АНИМАЦИЯ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.forecast-section > * {
    animation: fadeInUp 0.5s ease-out;
}