* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}
.container { max-width: 1400px; margin: 0 auto; }
.nav-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.nav-buttons a, .nav-buttons button, .nav-buttons span {
    padding: 10px 20px; border-radius: 8px; text-decoration: none;
    font-weight: bold; border: none; cursor: pointer; transition: transform 0.2s;
}
.nav-buttons a:hover, .nav-buttons button:hover { transform: scale(1.05); }
.btn-back { background: #3498db; color: white; }
.btn-home { background: #27ae60; color: white; }
.btn-year { background: #9b59b6; color: white; }
.btn-dark { background: #2c3e50; color: white; }

.lang-switcher { display: flex; gap: 8px; justify-content: center; margin-bottom: 15px; }
.lang-flag { cursor: pointer; opacity: 0.5; transition: 0.2s; border: 2px solid transparent; border-radius: 3px; width: 28px; height: 20px; }
.lang-flag:hover, .lang-flag.active { opacity: 1; transform: scale(1.1); border-color: #fff; }

.page-title { text-align: center; margin-bottom: 20px; }
.page-title h1 { color: white; font-size: 1.8em; }

.comparison-toggle {
    background: white; padding: 15px 25px; border-radius: 12px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); flex-wrap: wrap;
}
.comparison-toggle label { cursor: pointer; display: flex; align-items: center; gap: 8px; }

.seasons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.season-card {
    background: white; border-radius: 16px; padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); position: relative; overflow: hidden;
}
.season-card::before {
    content: ""; position: absolute; right: -15px; bottom: -15px;
    font-size: 5em; opacity: 0.2;
}
.season-card.winter { border-top: 4px solid #4facfe; }
.season-card.winter::before { content: "❄️"; }
.season-card.spring { border-top: 4px solid #43e97b; }
.season-card.spring::before { content: "🌸"; }
.season-card.summer { border-top: 4px solid #f5576c; }
.season-card.summer::before { content: "☀️"; }
.season-card.autumn { border-top: 4px solid #f39c12; }
.season-card.autumn::before { content: "🍂"; }

.season-card h3 { font-size: 1.3em; margin-bottom: 5px; position: relative; z-index: 1; }
.season-card .period { font-size: 0.85em; color: #333; margin-bottom: 5px; font-weight: 500; position: relative; z-index: 1; }
.season-card .in-progress { font-size: 0.75em; color: #e67e22; margin-bottom: 10px; position: relative; z-index: 1; }
.season-card .compare-period { font-size: 0.75em; color: #888; margin-bottom: 15px; display: none; position: relative; z-index: 1; }
.show-prev .compare-period { display: block; }

.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; position: relative; z-index: 1; }
.stat-row:last-child { border-bottom: none; }
.stat-label { color: #666; font-size: 0.9em; }
.stat-value { font-weight: bold; }
.stat-value.temp-high { color: #e74c3c; }
.stat-value.temp-low { color: #3498db; }
.stat-value.rain { color: #4facfe; }
.stat-value.wind { color: #43e97b; }
.stat-value.pressure { color: #9b59b6; }
.prev-year { font-size: 0.75em; color: #999; display: none; }
.show-prev .prev-year { display: inline; }
.no-data { color: #999; font-style: italic; }

.charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.chart-card {
    overflow: hidden; max-width: 100%; background: white;
    border-radius: 16px; padding: 25px; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.chart-card h3 { margin-bottom: 20px; text-align: center; }

.dark-mode { background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%); }
.dark-mode .season-card, .dark-mode .chart-card, .dark-mode .comparison-toggle { background: #2a2a3e; color: #eee; border: 1px solid #3a3a4e; }
.dark-mode .stat-label { color: #bbb; }
.dark-mode .stat-row { border-color: #404050; }
.dark-mode .period { color: #ddd; }
.dark-mode .compare-period { color: #999; }

@media (max-width: 1000px) {
    .seasons-grid { grid-template-columns: repeat(2, 1fr); }
    .charts-grid { grid-template-columns: 1fr; }
    .chart-card { padding: 15px; }
    .chart-card canvas { max-width: 100% !important; height: auto !important; }
    .container { padding: 10px; overflow-x: hidden; }
}
@media (max-width: 600px) {
    .seasons-grid { grid-template-columns: 1fr; }
}

.insights-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.insight-card { background: white; border-radius: 16px; padding: 25px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.insight-card h3 { margin-bottom: 15px; font-size: 1.1em; }
.insight-card p { color: #666; margin-bottom: 10px; line-height: 1.5; }
.insight-card ul { list-style: none; padding: 0; }
.insight-card li { padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #e74c3c; }
.dot.blue { background: #3498db; }
.dot.green { background: #2ecc71; }
.insight-item { padding: 10px 0; border-bottom: 1px solid #eee; }
.insight-item:last-child { border-bottom: none; }
.insight-item .emoji { font-size: 1.2em; margin-right: 8px; }
.insight-positive { color: #27ae60; }
.insight-negative { color: #e74c3c; }
.insight-neutral { color: #666; }
.dark-mode .insight-card { background: #2a2a3e; border: 1px solid #3a3a4e; }
.dark-mode .insight-card p { color: #bbb; }
.dark-mode .insight-item { border-color: #404050; }
.dark-mode .insight-positive { color: #4cd964; }
.dark-mode .insight-negative { color: #ff6b6b; }
.dark-mode .insight-neutral { color: #bbb; }
.dark-mode .insight-item { color: #eee; }
.dark-mode .insight-card strong { color: #fff; }
.dark-mode .insight-card li { color: #ddd; }
.dark-mode .insight-card h3 { color: #fff; }
@media (max-width: 1000px) {
    .insights-section { grid-template-columns: 1fr; }
}
.insight-warning { color: #e67e22; font-weight: bold; }
.stat-bold { font-weight: 800; }

.records-section { margin-top: 30px; }
.records-card {
    background: white; border-radius: 16px; padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); overflow-x: auto;
}
.records-card h3 { margin-bottom: 20px; text-align: center; font-size: 1.3em; }
.records-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.records-table th, .records-table td {
    padding: 12px 15px; text-align: center; border-bottom: 1px solid #eee;
}
.records-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; font-weight: 600;
}
.records-table th:first-child { border-radius: 8px 0 0 0; text-align: left; }
.records-table th:last-child { border-radius: 0 8px 0 0; }
.records-table tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.records-table tr:last-child td:last-child { border-radius: 0 0 8px 0; }
.records-table tr:hover { background: #f8f9fa; }
.records-table td:first-child { text-align: left; font-weight: 600; }
.record-value { font-weight: bold; color: #2c3e50; }
.record-year { font-size: 0.8em; color: #888; display: block; }
.record-highlight { background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%); }
.dark-mode .records-card { background: #2a2a3e; border: 1px solid #3a3a4e; }
.dark-mode .records-table th { background: linear-gradient(135deg, #5a5a7a 0%, #4a4a6a 100%); }
.dark-mode .records-table td { border-color: #404050; color: #eee; }
.dark-mode .records-table tr:hover { background: #353545; }
.dark-mode .records-card h3 { color: #fff; }
.dark-mode .record-value { color: #eee; }
.dark-mode .record-year { color: #888; }
.dark-mode .record-highlight { background: linear-gradient(135deg, #3a3a2e 0%, #4a4a3e 100%); }
@media (max-width: 600px) {
    .records-table { font-size: 0.75em; }
    .records-table th, .records-table td { padding: 8px 5px; }
}

.records-cards-mobile { display: none; }
.record-card-mobile {
    background: white; border-radius: 12px; padding: 15px;
    margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.record-card-mobile h4 {
    font-size: 1.1em; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 2px solid #667eea;
}
.record-card-mobile .record-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid #eee;
}
.record-card-mobile .record-row:last-child { border-bottom: none; }
.record-card-mobile .record-label { color: #666; }
.record-card-mobile .record-data { text-align: right; }
.record-card-mobile .record-value { font-weight: bold; color: #2c3e50; }
.record-card-mobile .record-year { font-size: 0.8em; color: #888; }
.record-card-mobile .record-highlight {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    margin: 0 -15px; padding: 8px 15px;
}

.dark-mode .record-card-mobile { background: #2a2a3e; border: 1px solid #3a3a4e; }
.dark-mode .record-card-mobile h4 { color: #fff; border-color: #5a5a7a; }
.dark-mode .record-card-mobile .record-row { border-color: #404050; }
.dark-mode .record-card-mobile .record-label { color: #bbb; }
.dark-mode .record-card-mobile .record-value { color: #fff; }
.dark-mode .record-card-mobile .record-year { color: #aaa; }
.dark-mode .record-card-mobile .record-highlight {
    background: linear-gradient(135deg, #4a4a3e 0%, #5a5a4e 100%);
}

@media (max-width: 600px) {
    .records-table { display: none; }
    .records-cards-mobile { display: block; }
}
