/* --- CSS STYLES (Base) --- */
body {
    font-family: Arial, sans-serif;
    background-color: #e6f7ff;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 10px;
}
.container {
    max-width: 500px;
    width: 90%;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid #0077b6;
    text-align: center;
}
h2 {
    color: #0077b6;
    margin-bottom: 25px;
}
form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}
button {
    padding: 12px 20px;
    background-color: #00b050;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #009944;
}
#weather-output {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f0f8ff;
    border: 1px solid #ddd;
    min-height: 150px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.weather-detail {
    text-align: left;
    margin-bottom: 8px;
}
.weather-detail strong { 
    color: #0077b6;
    min-width: 120px; 
    display: inline-block;
}
#current-city {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #005f8b;
}
.error {
    background-color: #ffe0e0;
    border: 1px solid #ffaaaa;
    color: #cc0000;
}
#mock-status {
    font-size: 0.8em;
    color: #999;
    margin-top: 15px;
}

@media (max-width: 500px) {
    body {
        margin: 0;
        align-items: flex-start;
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .container {
        max-width: 100%;
        width: calc(100% - 30px);
        margin: 0 auto;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        border-width: 2px;
    }
    h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    form {
        flex-direction: column;
        gap: 15px; 
        margin-bottom: 20px;
    }
    input[type="text"] {
        padding: 10px;
        font-size: 1rem;
    }
    button {
        padding: 10px 15px;
        font-size: 1rem;
    }

    #weather-output {
        padding: 15px;
        min-height: 120px;
    }
    #current-city {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    .weather-detail {
        font-size: 0.95em;
    }
    .weather-detail strong {
        min-width: 100px; 
    }
    #mock-status {
        font-size: 0.75em;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 15px;
        width: calc(100% - 20px);
    }
    h2 {
        font-size: 1.3rem;
    }
    button {
        font-size: 0.95rem;
        padding: 10px;
    }
    .weather-detail {
        font-size: 0.9em;
    }
    .weather-detail strong {
        min-width: 85px;
    }
}