:root {
    --primary: #00f2ea;
    --secondary: #ff0050;
    --bg-dark: #050505;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #fff;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #0a0a1a;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 12px 20px;
    color: #fff;
    font-size: 1rem;
    width: 280px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.3);
}

.search-box button {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--secondary);
    color: #fff;
}

/* Weather Card */
.weather-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.15);
    display: none;
}

.weather-card.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.weather-icon {
    font-size: 5rem;
    margin: 10px 0;
}

.city-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.temperature {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: capitalize;
    margin-bottom: 20px;
}

/* Details Grid */
.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Status Messages */
.error {
    color: var(--secondary);
    margin-top: 20px;
    font-size: 1rem;
    display: none;
}

.error.show {
    display: block;
}

.loading {
    display: none;
    margin-top: 20px;
    color: var(--primary);
}

.loading.show {
    display: block;
}

/* Back Link */
.back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--secondary);
}
