/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0f1117;
    color: #e8eaf0;
}

/* ── App shell ────────────────────────────────────────────── */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Header ───────────────────────────────────────────────── */
.app-header {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    background: rgba(15, 17, 23, 0.85);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
}

.app-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

/* ── Main content ─────────────────────────────────────────── */
.app-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem 2rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.app-footer {
    text-align: center;
    padding: 1.25rem;
    font-size: 0.78rem;
    color: #555b6e;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.app-footer a {
    color: #6b8cff;
    text-decoration: none;
}

.app-footer a:hover {
    text-decoration: underline;
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
    background: #16181f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ── Typography ───────────────────────────────────────────── */
h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0abff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.95rem;
    color: #7a8099;
    margin: 0 0 2rem;
}

/* ── Form labels ──────────────────────────────────────────── */
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a8099;
    margin-bottom: 0.4rem;
    display: block;
}

/* ── Inputs ───────────────────────────────────────────────── */
.form-control {
    background: #0f1117;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #e8eaf0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.form-control:focus {
    border-color: #6b8cff;
    box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.18);
}

.form-control::placeholder {
    color: #3a3f52;
}

/* ── Button ───────────────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, #6b8cff 0%, #a259ff 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    transition: opacity 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-top: 1.5rem;
    font-size: 0.93rem;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
}

/* ── Results list ─────────────────────────────────────────── */
.results-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.results-list li {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
    color: #b0b8d0;
}

.results-list li strong {
    color: #e8eaf0;
}

/* ── Place cards ──────────────────────────────────────────── */
.place-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

@media (max-width: 480px) {
    .place-cards {
        grid-template-columns: 1fr;
    }
}

.place-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.place-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e8eaf0;
    line-height: 1.3;
}

.place-lat {
    font-size: 0.75rem;
    color: #6b8cff;
    font-variant-numeric: tabular-nums;
}

.place-weather {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.weather-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.weather-summary {
    font-size: 0.82rem;
    color: #b0b8d0;
}

.place-temps {
    font-size: 0.8rem;
    color: #7a8099;
    font-variant-numeric: tabular-nums;
}

.place-time {
    font-size: 0.78rem;
    color: #555b6e;
    margin-top: 0.15rem;
}

/* ── Divider ──────────────────────────────────────────────── */
.vs-divider {
    text-align: center;
    color: #3a3f52;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin: 0.25rem 0;
}

/* ── Blazor error UI ──────────────────────────────────────── */
#blazor-error-ui {
    color-scheme: light only;
    background: #7f1d1d;
    color: #fecaca;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.4);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.9rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Misc ─────────────────────────────────────────────────── */
a { color: #6b8cff; }
a:hover { text-decoration: underline; }

.mb-3 { margin-bottom: 1.1rem; }
