/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #011232;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

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

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 64px;
    padding-top: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.tagline {
    font-size: 1.1rem;
    color: #8b9dc3;
    font-weight: 400;
}

/* Arrondissement Grid */
.arrondissement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 64px;
}

.arr-button-paris {
    grid-column: 1 / -1;
    background: rgba(96, 165, 250, 0.1) !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
}

.arr-button-paris:hover {
    background: rgba(96, 165, 250, 0.2) !important;
    border-color: #60a5fa !important;
}

.arr-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.arr-button:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.arr-button:active {
    transform: translateY(0);
}

.arr-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #60a5fa;
}

.arr-name {
    font-size: 0.75rem;
    color: #8b9dc3;
    text-align: center;
    line-height: 1.3;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 60px 0;
    color: #8b9dc3;
    font-size: 1rem;
}

/* Weather Card */
.weather-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 64px;
}

.back-button {
    background: none;
    border: none;
    color: #60a5fa;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 24px;
    font-family: inherit;
    transition: opacity 0.2s;
}

.back-button:hover {
    opacity: 0.7;
}

.location {
    text-align: center;
    font-size: 1.1rem;
    color: #8b9dc3;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Current conditions */
.current-conditions {
    text-align: center;
    margin-bottom: 48px;
}

.temperature-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.weather-icon-large {
    font-size: 5rem;
    line-height: 1;
}

.temperature {
    font-size: 6rem;
    font-weight: 200;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.temp-unit {
    font-size: 4rem;
    vertical-align: super;
    margin-left: 4px;
}

.feels-like {
    font-size: 1rem;
    color: #6b7f9f;
    margin-bottom: 16px;
    font-weight: 400;
}

.feels-like #feels-like-value {
    color: #8b9dc3;
    font-weight: 500;
}

.summary {
    font-size: 1.25rem;
    color: #8b9dc3;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.updated {
    text-align: center;
    color: #6b7f9f;
    font-size: 0.875rem;
    margin-top: 24px;
}

/* Hourly Forecast */
.hourly-forecast-section {
    margin-bottom: 48px;
}

.hourly-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b9dc3;
    margin-bottom: 16px;
}

.hourly-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hourly-nav-btn {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.hourly-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
}

.hourly-nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.hourly-container {
    flex: 1;
    overflow: hidden;
}

.hourly-forecast {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.hour-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.hour-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.hour-time {
    font-size: 0.875rem;
    font-weight: 500;
    color: #8b9dc3;
}

.hour-icon {
    font-size: 2rem;
    line-height: 1;
}

.hour-rain {
    font-size: 0.8rem;
    color: #60a5fa;
    font-weight: 500;
}

.hour-temp {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

/* Chart */
.chart-container {
    margin-bottom: 32px;
    position: relative;
    height: 200px;
}

#precipitation-chart {
    max-height: 200px;
}

/* CLI Section */
.cli-section {
    margin: 80px 0;
    padding: 48px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cli-section h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.cli-section > p {
    color: #8b9dc3;
    margin-bottom: 40px;
}

.cli-install {
    display: grid;
    gap: 32px;
    margin-bottom: 48px;
}

.cli-step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 12px;
}

.cli-step code {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #34d399;
    white-space: pre-wrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cli-note {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #8b9dc3;
}

.cli-note a {
    color: #60a5fa;
    text-decoration: none;
}

.cli-note a:hover {
    text-decoration: underline;
}

.cli-note code {
    display: inline;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cli-examples h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.example-grid {
    display: grid;
    gap: 16px;
}

.example {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.example code {
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    color: #60a5fa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.example span {
    color: #8b9dc3;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    text-align: center;
    color: #6b7f9f;
    font-size: 0.875rem;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: #60a5fa;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .arrondissement-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .arr-button {
        padding: 16px 12px;
    }

    .arr-number {
        font-size: 1.25rem;
    }

    .arr-name {
        font-size: 0.7rem;
    }

    .weather-card {
        padding: 32px 24px;
    }

    .weather-icon-large {
        font-size: 3.5rem;
    }

    .temperature {
        font-size: 4.5rem;
    }

    .temp-unit {
        font-size: 3rem;
    }

    .summary {
        font-size: 1.1rem;
    }

    .hourly-navigation {
        gap: 8px;
    }

    .hourly-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .hourly-forecast {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .hour-card {
        padding: 14px 10px;
        gap: 10px;
    }

    .hour-icon {
        font-size: 1.75rem;
    }

    .cli-section {
        padding: 32px 24px;
    }

    .cli-section h2 {
        font-size: 1.5rem;
    }

    .example {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Smooth transitions */
#content {
    animation: slideIn 0.4s ease;
}

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