@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --color-primary: #000;
  --color-surface: #f5f5f5;
  --color-border: #e0e0e0;
  --color-text-secondary: #666;
  --color-accent: #10a643;

  --font-family: Pretendard, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 10px;

  --container-max: 1100px;
  --gap: 16px;

  --shadow-card: 0 0 0 1px var(--color-border);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-primary);
  background: #fff;
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 0 18px;
}

.header-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.btn-menu {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.2px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 18px;
}

.hero-inner {
  width: 100%;
  max-width: var(--container-max);
  text-align: center;
}

.hero-title {
  margin: 0;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.8px;
}

.hero-slogan {
  margin: 12px 0 36px 0;
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 600;
}

.results {
  padding: 12px 18px 40px 18px;
}

.results-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.sections {
  display: block;
}

.section {
  margin-top: 0;
  padding: 7px 0;
}

.section-title {
  margin: 16px 0 10px 0;
  font-size: 18px;
  font-weight: 700;
}

.card-slot {
  display: flex;
  align-items: flex-start;
}

/* State management */
body.state-initial .header-title {
  opacity: 0;
}

body.state-initial #header-search {
  display: none;
}

body.state-initial #results {
  display: none;
}

body.state-results #hero {
  display: none;
}

body.state-results .header-title {
  opacity: 1;
}
