@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Noto+Sans+KR:wght@300;400;600;700&display=swap');

:root {
  --bg: #0f1515;
  --bg-2: #101f22;
  --accent: #ff6f3c;
  --accent-2: #f9c74f;
  --text: #f6f4f0;
  --muted: #b7c0c0;
  --card: #172527;
  --card-2: #1f3235;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #1b2f33 0%, var(--bg) 45%),
    radial-gradient(circle at 70% 10%, #223a40 0%, transparent 45%),
    linear-gradient(160deg, #0b1213 0%, #0f1b1e 100%);
  min-height: 100vh;
}

.page {
  position: relative;
  padding: 48px 20px 32px;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  z-index: 1;
}

.hero {
  display: grid;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent-2);
  margin: 0;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0;
}

.subtitle {
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

.panel {
  background: linear-gradient(180deg, rgba(23, 37, 39, 0.9) 0%, rgba(18, 30, 32, 0.9) 100%);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 50px var(--shadow);
  display: grid;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.field-group {
  display: grid;
  gap: 12px;
}

label,
.label {
  font-size: 14px;
  color: var(--muted);
}

.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input[type='search'] {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--card-2);
  color: var(--text);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

input[type='search']:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 111, 60, 0.25);
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(249, 199, 79, 0.5);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.ghost:hover {
  background: rgba(249, 199, 79, 0.1);
}

.results {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.result-item {
  padding: 12px 14px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 4px;
}

.result-item strong {
  font-weight: 600;
}

.result-item small {
  color: var(--muted);
}

.result-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.toggle {
  display: inline-flex;
  background: var(--card);
  border-radius: 999px;
  padding: 4px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.toggle-btn.active {
  background: var(--accent);
  color: #1c0f08;
  font-weight: 600;
}

.status {
  color: var(--muted);
  font-size: 14px;
}

.meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-top: -10px;
}

.result {
  background: linear-gradient(135deg, rgba(31, 50, 53, 0.95), rgba(19, 34, 37, 0.95));
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.result-city {
  font-size: 20px;
  margin: 0;
}

.result-date {
  color: var(--muted);
  margin: 4px 0 0;
}

.temp-box {
  text-align: right;
}

.temp-main {
  font-size: 32px;
  margin: 0;
  font-weight: 600;
}

.temp-range {
  color: var(--muted);
  margin: 4px 0 0;
}

.section-title {
  font-size: 14px;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.summary {
  margin: 0;
  color: var(--text);
}

.outfit-list,
.tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.outfit-list li,
.tip-list li {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
}

.footer {
  color: var(--muted);
  font-size: 12px;
}

.bg-orb {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 60, 0.25), transparent 70%);
  filter: blur(8px);
  z-index: 0;
  opacity: 0.65;
}

.orb-1 {
  top: -80px;
  left: -60px;
}

.orb-2 {
  bottom: -120px;
  right: -60px;
  background: radial-gradient(circle, rgba(249, 199, 79, 0.2), transparent 70%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  z-index: 0;
  opacity: 0.5;
}

@media (max-width: 720px) {
  .panel {
    padding: 20px;
  }

  .result-head {
    flex-direction: column;
  }

  .temp-box {
    text-align: left;
  }

  .ghost {
    width: 100%;
  }
}
