:root {
    --bg-color: #0047AB;
    /* Vliegblauw */
    --card-bg: #ffffff;
    --text-primary: #1a1b1e;
    --text-secondary: #5f6368;
    --accent-color: #1a73e8;
    --success-color: #1e8e3e;
    --warning-color: #f9ab00;
    --danger-color: #d93025;
    --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --elevation-2: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    --elevation-3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    --radius-md: 12px;
    --radius-lg: 24px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

#app {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    z-index: 10;
}

header {
    margin-bottom: 24px;
}

.webcam-gallery {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f1f3f4;
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

#webcam-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 8px;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.header-main h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
}

.search-container {
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: var(--radius-lg);
    padding: 6px 16px;
    width: 100%;
    max-width: 400px;
    transition: box-shadow 0.2s;
    margin: 0 auto;
}

#city-search {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    color: var(--text-primary);
}

#location-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    padding: 4px;
    transition: transform 0.2s;
}

#location-btn:hover {
    transform: scale(1.1);
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--elevation-1);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#weather-hero.card {
    align-items: stretch;
    /* Keep hero content layout */
}

#running-recommendation {
    background: var(--card-bg);
    /* Ensuring it's white */
}

/* Weather Hero Reorganization */
.hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.hero-left {
    flex: 0 0 auto;
}

#current-temp {
    font-size: 3rem;
    /* Reduced from 6rem equivalent */
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.weather-hero-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

#weather-hero {
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

#weather-icon-container {
    font-size: 2.5rem;
    color: #f9ab00;
    /* Standard warm yellow */
    display: flex;
    align-items: center;
}

#recommendation-card {
    border-left: 4px solid var(--primary);
    background: #e8f0fe;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#recommendation-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    max-width: 80%;
}

i[data-lucide] {
    stroke-width: 2;
}

.location-info h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

#weather-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.weather-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-item .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-item .value {
    font-size: 1rem;
    font-weight: 600;
}

.wind-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wind-arrow {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
    transition: transform 0.5s ease;
}

.comfort-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 8px;
    box-shadow: var(--elevation-1);
}

.comfort-badge.very-comfortable {
    color: #1e8e3e;
    background: #e6f4ea;
}

.comfort-badge.comfortable {
    color: #1e8e3e;
    background: #e6f4ea;
}

.comfort-badge.humid {
    color: #f9ab00;
    background: #fef7e0;
}

.comfort-badge.uncomfortable {
    color: #e37400;
    background: #feefe3;
}

.comfort-badge.oppressive {
    color: #d93025;
    background: #fce8e6;
}

/* Running Recommendation */
.badge {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.2rem;
    box-shadow: var(--elevation-1);
}

.badge.success {
    background: #e6f4ea;
    color: var(--success-color);
}

.badge.warning {
    background: #fef7e0;
    color: var(--warning-color);
}

.badge.danger {
    background: #fce8e6;
    color: var(--danger-color);
}

.tip-content {
    line-height: 1.6;
    color: var(--text-primary);
}

.warnings {
    margin-top: 16px;
    padding: 16px;
    background: #fce8e6;
    border-radius: 16px;
    color: var(--danger-color);
    font-size: 0.95rem;
    font-weight: 600;
}

#forecast-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centering content */
}

#forecast-mini h3 {
    margin-bottom: 8px;
    width: 100%;
    text-align: center;
}

.chart-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    justify-content: center;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.temp {
    background-color: #1a73e8;
}

.dot.rain {
    background-color: #1e8e3e;
}

.chart-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    margin-bottom: 20px;
    cursor: grab;
}

.chart-scroll-wrapper:active {
    cursor: grabbing;
}

.chart-container {
    height: 250px;
    min-width: 1200px;
}

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

.hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: var(--elevation-1);
}

.hidden {
    display: none !important;
}

footer {
    text-align: center;
    padding: 24px;
    color: #ffffff;
    opacity: 0.8;
    font-size: 0.9rem;
}

i[data-lucide] {
    stroke-width: 2.5;
}