/* style.css — WeatherHub.info */

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(160deg, #e0f2fe 0%, #f8fafc 60%);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 8rem;   /* bottom padding clears the fixed footer */
}

.app-container { width: 100%; max-width: 520px; }

header { text-align: center; margin-bottom: 2rem; }
header h1 { font-size: 2rem; color: #0369a1; letter-spacing: -0.02em; }
header p { color: #64748b; font-size: 0.9rem; margin-top: 0.25rem; }

form { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
input[type="text"] {
    flex: 1; padding: 0.75rem 1rem; font-size: 1rem;
    border: 1px solid #cbd5e1; border-radius: 0.5rem; outline: none;
}
input[type="text"]:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56,189,248,.25);
}
button {
    padding: 0.75rem 1.25rem; font-size: 1rem; font-weight: 600;
    background: #0284c7; color: #fff; border: none; border-radius: 0.5rem; cursor: pointer;
}
button:hover { background: #0369a1; }

.card {
    background: #fff; border-radius: 1rem; padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(2,132,199,.08); text-align: center;
}
.card .emoji { font-size: 3.5rem; line-height: 1; }
.card .temp { font-size: 3rem; font-weight: 700; color: #0369a1; }
.card .desc { font-size: 1.1rem; color: #475569; margin-bottom: 0.75rem; }
.card .place { font-weight: 600; color: #1e293b; margin-bottom: 1rem; }
.card .meta { display: flex; justify-content: space-around; font-size: 0.9rem; color: #64748b; }

.error { background: #fef2f2; color: #b91c1c; padding: 1rem; border-radius: 0.5rem; text-align: center; }

/* --- Call Time Planner --- */
.planner { margin-top: 2rem; }
.planner h3 { margin-bottom: 0.75rem; color: #0369a1; font-size: 1.1rem; }

.planner-row { display: flex; gap: 0.5rem; }
.planner-row input {
    flex: 1; padding: 0.6rem; border: 1px solid #cbd5e1; border-radius: 0.5rem;
    font-size: 0.95rem; outline: none;
}
.planner-row input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.25); }
.planner-row button { padding: 0.6rem 1rem; }

.time-card {
    margin-top: 1rem; text-align: left;
}
.time-card .cities {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.time-card .city { flex: 1; text-align: center; }
.time-card .city .label { font-size: 0.85rem; color: #64748b; margin-bottom: 0.25rem; }
.time-card .city .clock { font-size: 2rem; font-weight: 700; color: #0369a1; }
.time-card .arrow { padding: 0 1rem; text-align: center; color: #94a3b8; font-size: 1.5rem; }

.diff-badge {
    text-align: center; padding: 0.75rem; background: #f8fafc;
    border-radius: 0.5rem; margin-bottom: 0.75rem; font-size: 0.95rem;
}

.call-status {
    text-align: center; padding: 0.5rem; border-radius: 0.5rem;
    font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem;
}
.call-status.good { background: #dcfce7; color: #166534; }
.call-status.bad  { background: #fef2f2; color: #991b1b; }

.best-window {
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 0.5rem;
    padding: 0.75rem; font-size: 0.9rem; color: #1e40af; text-align: center;
}
.best-window strong { color: #1e3a8a; }

/* --- Fixed footer with ad slot --- */
footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #f1f5f9; border-top: 1px solid #e2e8f0;
    padding: 0.5rem; text-align: center;
    font-size: 0.75rem; color: #94a3b8;
    z-index: 1000;
}
footer .ad-slot {
    display: inline-block; min-width: 320px; min-height: 50px;
    background: #e2e8f0; border-radius: 0.25rem;
    line-height: 50px; color: #94a3b8; font-size: 0.75rem;
}