/* public/style.css */

/* Page layout */
:root{
  --bg: #f5f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-700: #1d4ed8;
  --error: #dc2626;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  padding:24px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg), #eef2ff 120%);
  color:#111827;
  -webkit-font-smoothing:antialiased;
}

.container{
  max-width:760px;
  margin:28px auto;
  background:var(--card);
  border-radius:12px;
  box-shadow:0 10px 30px rgba(16,24,40,0.06);
  padding:20px;
  border:1px solid rgba(15,23,42,0.03);
}

/* Header */
h1{
  margin:0 0 8px 0;
  font-size:1.25rem;
  letter-spacing:-0.2px;
}
.lead{
  margin:0 0 18px 0;
  color:var(--muted);
  font-size:0.95rem;
}

/* Controls row */
.controls{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:16px;
  flex-wrap:wrap;
}

/* Button */
button#fetchBtn{
  background:var(--accent);
  color:#fff;
  border:0;
  padding:10px 14px;
  font-size:0.95rem;
  border-radius:8px;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(37,99,235,0.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
button#fetchBtn:active{ transform: translateY(1px) }
button#fetchBtn:hover{
  background:var(--accent-700);
  box-shadow:0 10px 28px rgba(29,78,216,0.12);
}

/* Loading text */
#loading{
  display:inline-block;
  font-size:0.95rem;
  color:var(--muted);
  padding:6px 8px;
  border-radius:6px;
  background:rgba(15,23,42,0.03);
}

/* Error */
#error{
  color:var(--error);
  font-weight:600;
  padding:8px 10px;
  border-radius:8px;
  background:rgba(220,38,38,0.06);
  border:1px solid rgba(220,38,38,0.12);
}

/* Output box */
#output{
  margin-top:14px;
  padding:14px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius:10px;
  border:1px solid rgba(15,23,42,0.04);
  min-height:70px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  font-size:0.95rem;
  overflow:auto;
  white-space:pre-wrap;
}

/* Small metadata row */
.meta{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:10px;
  color:var(--muted);
  font-size:0.85rem;
}

/* Responsive */
@media (max-width:520px){
  .container{ padding:14px; margin:16px; }
  .controls{ gap:8px }
  button#fetchBtn{ padding:9px 12px; font-size:0.9rem }
  #output{ font-size:0.9rem; padding:12px }
}
