:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #888888;
    --accent-color: #ffb800; /* Warm Yellow */
    --accent-light: #fff9e0; /* Light Yellow bg for graph */
    --font-family: 'DM Sans', sans-serif;
}

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

body {
    background-color: #f5f5f7;
    color: var(--text-primary);
    font-family: var(--font-family);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 800px; /* Wider for graph */
    background: var(--bg-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

/* Header */
.current-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.main-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-big {
    font-size: 5rem;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.temp-group {
    display: flex;
    align-items: flex-start;
}

.temp-value {
    font-size: 6rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -2px;
}

.unit {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 500;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 2px solid #eee;
    padding-left: 2rem;
}

.detail-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-item .value {
    color: var(--text-primary);
    font-weight: 500;
    margin-left: 5px;
}

.location-info {
    text-align: right;
}

.label-text {
    font-size: 1.5rem;
    font-weight: 500;
}

.time-text, .condition-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.2rem;
}

/* Graph Section */
.graph-section {
    position: relative;
    padding-top: 1rem;
}

.tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.tab {
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 1.1rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding-bottom: 5px;
    position: relative;
}

.tab.active {
    color: var(--text-primary);
    font-weight: 700;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.graph-container {
    width: 100%;
    height: 200px;
    position: relative;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.graph-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Forecast Section */
.forecast-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 1rem;
    border-radius: 16px;
    transition: 0.3s;
    cursor: pointer;
}

.forecast-item:hover, .forecast-item.active {
    background: #f8f8f8;
    transform: translateY(-5px);
}

.forecast-day {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.forecast-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.forecast-temps {
    font-size: 0.9rem;
    font-weight: 500;
}

.forecast-temps .low {
    color: var(--text-secondary);
    margin-left: 5px;
}

/* Animations */
@keyframes popIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 600px) {
    .app-container {
        padding: 1.5rem;
        height: 100vh;
        border-radius: 0;
        gap: 2rem;
    }
    
    .current-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .details-grid {
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 1rem;
        padding-left: 0;
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .location-info {
        text-align: center;
    }
    
    .graph-labels div:nth-child(even) {
        display: none; /* Hide every other label on mobile */
    }
}
