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

:root {
    --black: #0a0a0a;
    --dark: #111111;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #999999;
    --gray-600: #666666;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background: var(--black);
    color: var(--white);
    padding: 40px 20px;
}

/* Main Container */

.weather-app {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Header */

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

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.app-header h1 {
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.95;
    letter-spacing: -4px;
}

.header-symbol {
    width: 55px;
    height: 55px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: var(--gray-400);
}

/* Search */

.search-section {
    margin-bottom: 25px;
}

.search-bar {
    display: flex;
    width: 100%;
    gap: 10px;
}

#city-input {
    flex: 1;
    min-width: 0;
    padding: 18px 20px;

    background: #161616;
    color: var(--white);

    border: 1px solid #2b2b2b;
    border-radius: 12px;

    font-size: 16px;
    outline: none;

    transition: border-color 0.2s ease;
}

#city-input::placeholder {
    color: #666;
}

#city-input:focus {
    border-color: #666;
}

#search-btn {
    padding: 0 28px;

    background: var(--white);
    color: var(--black);

    border: none;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: 
        background 0.2s ease,
        transform 0.2s ease;
}

#search-btn:hover {
    background: var(--gray-200);
}

#search-btn:active {
    transform: scale(0.97);
}

/* Empty State */

.empty-state {
    min-height: 400px;

    border: 1px solid #242424;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 40px;

    background: #0d0d0d;
}

.empty-icon {
    font-size: 55px;
    color: #444;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-400);
    max-width: 350px;
    line-height: 1.6;
}

/* Weather Card */

.weather-card {
    background: var(--white);
    color: var(--black);

    border-radius: 20px;
    padding: 35px;

    animation: fadeIn 0.4s ease;
}

/* Location */

.location {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 45px;
}

.location h2 {
    font-size: clamp(28px, 5vw, 42px);
    letter-spacing: -1.5px;
}

.location p {
    margin-top: 6px;
    color: var(--gray-600);
    text-transform: capitalize;
}

/* Main Temperature */

.temperature-section {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-200);
}

.temperature {
    font-size: clamp(90px, 17vw, 160px);
    line-height: 0.8;
    letter-spacing: -10px;
    font-weight: 700;
}

.temperature-unit {
    font-size: 28px;
    vertical-align: top;
    margin-left: 8px;
    color: var(--gray-600);
}

.condition {
    text-align: right;
}

.weather-icon {
    font-size: 65px;
    margin-bottom: 10px;
}

.condition p {
    font-size: 17px;
    font-weight: 600;
    text-transform: capitalize;
}

/* Weather Details */

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
}

.weather-detail {
    padding: 10px 25px;
    border-right: 1px solid var(--gray-200);
}

.weather-detail:first-child {
    padding-left: 0;
}

.weather-detail:last-child {
    border-right: none;
}

.detail-label {
    display: block;
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 24px;
    font-weight: 700;
}

/* Errors */

.error-message {
    padding: 20px;
    background: #171717;
    border: 1px solid #333;
    border-radius: 12px;

    color: #fff;
    text-align: center;

    animation: fadeIn 0.3s ease;
}

/* Animation */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */

@media (max-width: 600px) {

    body {
        padding: 25px 15px;
    }

    .app-header {
        margin-bottom: 30px;
    }

    .app-header h1 {
        letter-spacing: -2px;
    }

    .header-symbol {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .search-bar {
        flex-direction: column;
    }

    #city-input {
        width: 100%;
    }

    #search-btn {
        height: 52px;
    }

    .weather-card {
        padding: 25px;
    }

    .location {
        margin-bottom: 35px;
    }

    .temperature-section {
        align-items: flex-end;
    }

    .temperature {
        font-size: 90px;
        letter-spacing: -7px;
    }

    .weather-icon {
        font-size: 45px;
    }

    .weather-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .weather-detail {
        padding: 15px 0;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .weather-detail:last-child {
        border-bottom: none;
    }
}