@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: #191a1e;
  --panel-2: #202126;
  --line: #303137;
  --text: #f5f5f6;
  --muted: #a3a4ab;
  --red: #f04b38;
  --red-dark: #c93629;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, rgba(240,75,56,.13), transparent 42%), var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, sans-serif;
}
button, input { font: inherit; }
.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 13px; background: linear-gradient(145deg, #ff624d, #c92f25);
  font-size: 23px; font-weight: 800; box-shadow: 0 7px 24px rgba(240,75,56,.25);
}
.brand strong { display: block; font-size: 16px; letter-spacing: .2px; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: -2px; }
.demo-label { color: #ff9a8d; border: 1px solid rgba(240,75,56,.35); background: rgba(240,75,56,.09); border-radius: 30px; padding: 5px 12px; font-size: 12px; }
.main { width: min(900px, calc(100% - 36px)); margin: 0 auto; flex: 1; }
.hero { text-align: center; padding: 86px 0 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #ff9385; font-size: 13px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(240,75,56,.12); }
h1 { font-size: clamp(31px, 6vw, 51px); line-height: 1.35; margin: 18px 0 8px; font-weight: 800; }
h1 span { color: var(--red); }
.subtitle { color: var(--muted); margin: 0 0 30px; font-size: 15px; }
.search-box {
  width: min(700px, 100%); margin: 0 auto; height: 68px; padding: 8px;
  display: flex; align-items: center; gap: 10px; background: #1c1d21;
  border: 1px solid #393a41; border-radius: 19px; box-shadow: 0 18px 55px rgba(0,0,0,.24);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: rgba(240,75,56,.8); box-shadow: 0 0 0 4px rgba(240,75,56,.1), 0 18px 55px rgba(0,0,0,.24); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 16px; padding: 0 8px; }
.search-box input::placeholder { color: #777981; }
.search-button { width: 49px; height: 49px; border: 0; border-radius: 13px; display: grid; place-items: center; background: var(--red); cursor: pointer; transition: .2s; }
.search-button:hover { background: #ff604d; transform: translateY(-1px); }
.search-button svg { width: 22px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; }
.clear-button { width: 35px; height: 35px; border: 0; background: transparent; color: #888; font-size: 25px; cursor: pointer; }
.suggestions { width: min(700px, 100%); margin: 8px auto 0; text-align: right; }
.suggestion { display: inline-block; margin: 3px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; color: #ddd; background: var(--panel); cursor: pointer; font-size: 12px; }
.suggestion:hover { border-color: var(--red); }
.quick-search { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; color: #777981; font-size: 12px; }
.quick-search button { color: #c9c9ce; background: transparent; border: 1px solid #33343a; border-radius: 20px; padding: 5px 11px; cursor: pointer; font-size: 12px; }
.quick-search button:hover { color: white; border-color: var(--red); }
.results { width: min(760px, 100%); margin: 20px auto 70px; }
.welcome-card, .result-card, .empty-card { background: rgba(25,26,30,.88); border: 1px solid var(--line); border-radius: 20px; padding: 25px; }
.welcome-card { text-align: center; }
.welcome-icon { width: 54px; height: 54px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 17px; background: rgba(240,75,56,.13); color: #ff806f; font-weight: 800; }
.welcome-card h2 { font-size: 17px; margin: 0 0 7px; }
.welcome-card p, .empty-card p { margin: 0; color: var(--muted); font-size: 13px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 14px; color: var(--muted); font-size: 13px; }
.correction { padding: 16px 18px; margin-bottom: 15px; border: 1px solid rgba(240,75,56,.25); border-radius: 15px; background: rgba(240,75,56,.07); line-height: 2; }
.correction .muted { color: var(--muted); font-size: 13px; }
.correction strong { color: #ff8d7e; margin-right: 5px; }
.correction button { border: 0; background: transparent; color: #ff9b8e; cursor: pointer; text-decoration: underline; margin-right: 8px; font-size: 12px; }
.result-card { display: flex; align-items: center; gap: 18px; }
.result-image { width: 132px; height: 112px; object-fit: cover; border-radius: 13px; background: #26272c; }
.result-info { min-width: 0; flex: 1; }
.result-info h2 { margin: 0 0 6px; font-size: 19px; }
.result-info p { margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.type-tag { display: inline-block; color: #ff9b8e; background: rgba(240,75,56,.1); padding: 3px 9px; border-radius: 20px; font-size: 11px; margin-bottom: 7px; }
.open-link { display: inline-flex; color: white; background: var(--red-dark); padding: 8px 14px; border-radius: 9px; text-decoration: none; font-size: 12px; }
.open-link:hover { background: var(--red); }
.loading { text-align: center; padding: 28px; color: var(--muted); }
.error-text { color: #ff9285; }
.footer { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; gap: 10px; color: #777981; font-size: 11px; }
@media (max-width: 600px) {
  .topbar { height: 70px; width: calc(100% - 28px); }
  .main { width: calc(100% - 28px); }
  .hero { padding-top: 65px; }
  .search-box { height: 61px; border-radius: 16px; }
  .search-button { width: 45px; height: 45px; }
  .result-card { align-items: flex-start; gap: 12px; padding: 16px; }
  .result-image { width: 95px; height: 95px; }
  .result-info h2 { font-size: 16px; }
  .result-info p { font-size: 12px; }
  .footer { width: calc(100% - 28px); flex-direction: column; text-align: center; }
}
