:root {
  --navy: #0a1628;
  --gold: #d4a84b;
  --cream: #f7f5f0;
  --blue: #1a73e8;
  --text: #202124;
  --muted: #5f6368;
  --border: #dfe1e5;
  --bg: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Home – Google-like */
.search-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.search-home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}
.logo-block {
  text-align: center;
  margin-bottom: 1.75rem;
}
.logo-block .mark {
  width: 56px; height: 56px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: .75rem;
}
.logo-block h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  margin: 0 0 .25rem;
  color: var(--navy);
}
.logo-block p { color: var(--muted); margin: 0; font-size: .95rem; }

.search-box {
  width: 100%;
  max-width: 584px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0 1rem;
  height: 48px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  background: #fff;
  transition: box-shadow .2s;
}
.search-box:hover, .search-box:focus-within {
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: .5rem;
  background: transparent;
}
.search-box button {
  border: none;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  padding: .35rem;
  font-size: 1.15rem;
}
.search-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-search {
  background: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  padding: .55rem 1.2rem;
  font-size: .875rem;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.btn-search:hover { border-color: #dadce0; box-shadow: 0 1px 1px rgba(0,0,0,.05); text-decoration: none; color: var(--text); }
.btn-gold {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border: none !important;
  font-weight: 600;
}

.quick-chips {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  max-width: 640px;
}
.chip {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .35rem .85rem;
  font-size: .8rem;
  color: var(--muted);
  background: #fff;
  text-decoration: none;
}
.chip:hover { border-color: var(--gold); color: var(--navy); text-decoration: none; }

/* Results layout */
.topbar {
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar .mini-logo {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.topbar .mini-logo span { color: var(--gold); }
.topbar .search-box { max-width: 560px; flex: 1; min-width: 200px; height: 42px; }

.tabs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tabs a {
  padding: .85rem 0;
  font-size: .875rem;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a.active, .tabs a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

.results-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}
@media (max-width: 900px) {
  .results-wrap { grid-template-columns: 1fr; }
}

.stats { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.result {
  margin-bottom: 1.5rem;
  max-width: 650px;
}
.result .url {
  font-size: .775rem;
  color: #202124;
  margin-bottom: .15rem;
}
.result .url .path { color: var(--muted); }
.result h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 .25rem;
  line-height: 1.3;
}
.result h3 a { color: #1a0dab; }
.result h3 a:visited { color: #681da8; }
.result .snippet {
  font-size: .875rem;
  color: #4d5156;
  line-height: 1.5;
}
.badge-src {
  display: inline-block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #e8f0fe;
  color: #1967d2;
  padding: .15rem .4rem;
  border-radius: 3px;
  margin-right: .35rem;
  font-weight: 600;
}
.badge-da { background: rgba(212,168,75,.2); color: #7a5a12; }

.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.side-card h4 {
  margin: 0 0 .75rem;
  font-size: .95rem;
  color: var(--navy);
}
.weather-temp { font-size: 2rem; font-weight: 300; }
.weather-meta { font-size: .85rem; color: var(--muted); }
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.score-row:last-child { border-bottom: none; }
.live-dot {
  width: 7px; height: 7px;
  background: #ea4335;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 50% { opacity: .4; } }

.footer-mini {
  text-align: center;
  padding: 1.5rem;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-mini a { color: var(--muted); }
