* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #232f47;
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --aurora-green: #00ff88;
    --aurora-blue: #0088ff;
    --aurora-purple: #8b5cf6;
    --aurora-pink: #ec4899;
    --accent: #00d4aa;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 255, 136, 0.15);
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Rakkas', Georgia, serif;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background: linear-gradient(
        180deg,
        rgba(0, 255, 136, 0.08) 0%,
        rgba(0, 136, 255, 0.05) 30%,
        rgba(139, 92, 246, 0.03) 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.aurora-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(
        ellipse 80% 50% at 50% 0%,
        rgba(0, 255, 136, 0.12) 0%,
        transparent 70%
    );
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.app-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-title h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    background: linear-gradient(135deg, var(--accent), var(--aurora-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.update-label {
    color: var(--text-muted);
}

.update-time {
    color: var(--aurora-green);
    font-weight: 500;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.header-nav a:hover,
.header-nav a.nav-active {
    color: var(--accent);
}

/* Hero Search */
.hero-search {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero-search h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-search-container {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.hero-search-container input {
    width: 100%;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.hero-search-container input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15), 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-search-container input::placeholder {
    color: var(--text-muted);
}

.hero-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-search-results.active {
    display: block;
}

.hero-search-results .search-result-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-search-results .search-result-item:hover {
    background: var(--bg-card-hover);
}

.hero-search-results .search-result-item .city-name {
    font-weight: 600;
    font-size: 1rem;
}

.hero-search-results .search-result-item .city-region {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Kp Section */
.kp-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.kp-card, .forecast-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.kp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.kp-header h2 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.kp-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-blue));
    padding: 8px 16px;
    border-radius: 24px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.kp-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.kp-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.kp-description {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.kp-meter {
    margin-top: auto;
}

.kp-meter-track {
    position: relative;
    height: 12px;
    background: linear-gradient(
        90deg,
        #22c55e 0%,
        #84cc16 22%,
        #eab308 44%,
        #f97316 66%,
        #ef4444 88%,
        #dc2626 100%
    );
    border-radius: 6px;
    overflow: visible;
}

.kp-meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.kp-meter-marker {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.5s ease;
}

.kp-meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Forecast Card */
.forecast-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.forecast-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding-top: 20px;
}

.forecast-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.forecast-bar-fill {
    width: 100%;
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.forecast-bar-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.forecast-bar-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Map Section */
.map-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.map-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.search-container {
    position: relative;
}

.search-container input {
    width: 280px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:hover {
    background: var(--bg-card-hover);
}

.search-result-item .city-name {
    font-weight: 500;
}

.search-result-item .city-region {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.map-container {
    position: relative;
    display: flex;
    gap: 20px;
}

#map {
    flex: 1;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.map-legend {
    width: 180px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
}

.map-legend h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-note {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Cities Section */
.cities-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.cities-section h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.city-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.city-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.city-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.city-info .latitude {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.city-probability {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.city-probability-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.city-probability-caption {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.city-visible-chance {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.city-probability.low {
    background: linear-gradient(135deg, #f97316, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
}

.city-probability.medium {
    background: linear-gradient(135deg, #eab308, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Conditions Section */
.conditions-section h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.condition-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.condition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.condition-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.condition-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.condition-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.condition-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.condition-status.good {
    background: rgba(0, 255, 136, 0.15);
    color: var(--aurora-green);
}

.condition-status.moderate {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.condition-status.poor {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Tips Section */
.tips-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.tips-section h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tip-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.tip-number {
    position: absolute;
    top: -10px;
    left: 16px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.tip-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 8px;
}

.tip-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Tips links */
.tip-card a {
    color: var(--accent);
    text-decoration: none;
}

.tip-card a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 40px 0 32px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-data p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.8;
}

/* Leaflet Customizations */
.leaflet-container {
    background: var(--bg-secondary);
}

.leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-tip {
    background: var(--bg-card);
}

.leaflet-popup-content {
    margin: 12px 16px;
}

.popup-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.popup-content .probability {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-content .visibility-estimate {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.popup-content .details {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* City Marker */
.city-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.city-marker:hover {
    transform: scale(1.1);
}

/* Weather badges in top 10 */
.weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 500;
}

.weather-badge.clear {
    background: rgba(0, 255, 136, 0.15);
    color: var(--aurora-green);
}

.weather-badge.partly {
    background: rgba(136, 255, 0, 0.15);
    color: #88ff00;
}

.weather-badge.mixed {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.weather-badge.cloudy {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.weather-badge.overcast {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.temp-badge {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* Forecast bar type indicator */
.forecast-bar-type {
    font-size: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 12px;
}

/* Top 10 Section */
.top10-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 255, 136, 0.05) 100%);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 255, 136, 0.08);
    position: relative;
    overflow: hidden;
}

.top10-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--aurora-green), var(--aurora-blue), var(--aurora-purple));
}

.top10-header {
    text-align: center;
    margin-bottom: 32px;
}

.top10-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top10-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

.top10-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.top10-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--item-color, var(--aurora-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top10-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    transform: translateX(8px);
}

.top10-item:hover::before {
    opacity: 1;
}

.top10-rank {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    flex-shrink: 0;
    position: relative;
}

.top10-rank.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.top10-rank.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.top10-rank.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8722d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.top10-rank.normal {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.top10-info {
    flex: 1;
    min-width: 0;
}

.top10-city-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.top10-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.top10-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top10-probability {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.top10-probability-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.top10-probability-value.high {
    background: linear-gradient(135deg, var(--aurora-green), #00cc6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.top10-probability-value.good {
    background: linear-gradient(135deg, #88ff00, #66cc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top10-probability-value.moderate {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top10-probability-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top10-visible-value {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.top10-bar {
    width: 120px;
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.top10-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Articles Section */
.articles-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 170, 0.04) 100%);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.articles-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.articles-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 28px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.1);
}

.article-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.article-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
}

.article-read-more {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
    display: inline-block;
}

.article-icon {
    display: none;
}

.article-meta-small {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-category-badge {
    text-transform: capitalize;
    background: rgba(0, 212, 170, 0.12);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .kp-section {
        grid-template-columns: 1fr;
    }

    .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-container {
        flex-direction: column;
    }

    .map-legend {
        width: 100%;
    }

    .legend-items {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top10-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .top10-bar {
        width: 100%;
        order: 4;
    }

    .top10-probability {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }
}

@media (max-width: 640px) {
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .conditions-grid {
        grid-template-columns: 1fr;
    }

    .search-container input {
        width: 100%;
    }

    .map-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .cities-grid {
        grid-template-columns: 1fr;
    }

    #map {
        height: 350px;
    }

    .header-brand {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-divider {
        display: none;
    }

    .header-title {
        text-align: center;
    }

    .article-image {
        height: 140px;
    }

}

@media (max-width: 480px) {
    .top10-section {
        padding: 20px;
    }

    .top10-header h2 {
        font-size: 1.25rem;
    }

    .top10-rank {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .top10-city-name {
        font-size: 1rem;
    }

    .top10-probability-value {
        font-size: 1.5rem;
    }
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--aurora-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Aurora Intensity Colors */
.aurora-high { background: #00ff88 !important; }
.aurora-good { background: #88ff00 !important; }
.aurora-moderate { background: #ffcc00 !important; }
.aurora-low { background: #ff8800 !important; }
.aurora-minimal { background: #ff4444 !important; }
