/* =========================================================
   MYPIE 상담 예약 조회 — Style Sheet
   톤앤매너: 마이파이(mypie.co.kr) 청록(Teal/Cyan) 브랜드 컬러,
   둥근 모서리, 소프트 그림자, 친근하고 신뢰감 있는 무드
   ========================================================= */

:root {
  /* Brand colors (mypie.co.kr teal/cyan) */
  --teal-900: #0e5266;
  --teal-800: #0f6b82;
  --teal-700: #128299;
  --teal-600: #17a1b8;
  --teal-500: #2bb9cf;
  --teal-400: #4fcadd;
  --teal-300: #8fe0ec;
  --teal-100: #e3f8fb;
  --teal-50:  #f2fcfd;

  --accent-yellow: #ffc857;
  --accent-orange: #ff9770;
  --accent-pink: #ff8fb1;
  --accent-navy: #2d3a6b;

  --ink-900: #16232a;
  --ink-700: #3a4a52;
  --ink-500: #667780;
  --ink-300: #9fb0b6;

  --white: #ffffff;
  --border-soft: #e1eff2;
  --shadow-soft: 0 12px 30px rgba(15, 107, 130, 0.10);
  --shadow-card: 0 8px 24px rgba(15, 107, 130, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: var(--ink-900);
  background: var(--teal-50);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ---------- background decoration ---------- */
.bg-decoration {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.5;
}
.deco-1 {
  width: 420px; height: 420px;
  top: -140px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--teal-300), var(--teal-100) 70%);
}
.deco-2 {
  width: 320px; height: 320px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle at 60% 40%, var(--teal-100), transparent 70%);
}
.deco-3 {
  width: 180px; height: 180px;
  top: 40%; right: 6%;
  background: radial-gradient(circle at 50% 50%, var(--accent-yellow) 0%, transparent 75%);
  opacity: 0.18;
}

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(15,107,130,0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--teal-100);
}
.pie-slice { display:block; }
.pie-slice.s1 { background: var(--teal-600); }
.pie-slice.s2 { background: var(--accent-yellow); }
.pie-slice.s3 { background: var(--accent-orange); }
.pie-slice.s4 { background: var(--teal-300); }

.brand-text {
  font-weight: 800;
  font-size: 20px;
  color: var(--teal-800);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text small {
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-500);
}

.header-nav .nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

/* ---------- hero ---------- */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 64px 24px 40px;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-900);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.hero-desc {
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1.7;
  margin: 0 0 32px;
}
.hero-desc strong { color: var(--teal-700); }

/* search card */
.search-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 10px 10px 10px 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.search-icon { color: var(--teal-500); font-size: 16px; }
#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 14px 4px;
  background: transparent;
  color: var(--ink-900);
  min-width: 0;
}
#search-input::placeholder { color: var(--ink-300); }

.btn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(23,161,184,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(23,161,184,0.4); }
.btn-search:active { transform: translateY(0); }
.btn-search:disabled { opacity: 0.7; cursor: default; transform: none; }

.hero-hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-300);
}
.hero-hint i { margin-right: 4px; }

/* ---------- results ---------- */
.results-section {
  position: relative;
  z-index: 1;
  padding: 0 24px 40px;
}
.results-inner {
  max-width: 720px;
  margin: 0 auto;
}

.state-placeholder {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-300);
}
.placeholder-icon {
  font-size: 42px;
  color: var(--teal-300);
  margin-bottom: 14px;
}
.placeholder-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-500);
  margin: 0 0 6px;
}
.placeholder-desc {
  font-size: 14px;
  color: var(--ink-300);
  margin: 0;
}

.state-loading {
  text-align: center;
  padding: 48px 24px;
  color: var(--teal-700);
}
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--teal-100);
  border-top-color: var(--teal-600);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.state-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.state-empty .placeholder-icon { color: var(--accent-orange); }
.state-empty .placeholder-title { color: var(--ink-900); }
.state-empty .placeholder-desc { color: var(--ink-500); }

.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 6px;
}
.results-summary .count {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-800);
}
.results-summary .query {
  font-size: 13px;
  color: var(--ink-300);
}

.reservation-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reservation-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.reservation-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
}
.reservation-card.is-cancelled::before { background: linear-gradient(180deg, #d9d9d9, #b7b7b7); }
.reservation-card.is-cancelled { opacity: 0.75; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-left: 6px;
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 4px;
  line-height: 1.4;
}
.card-subtitle {
  font-size: 12.5px;
  color: var(--ink-300);
  margin: 0;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.status-badge.st-confirmed { background: var(--teal-100); color: var(--teal-800); }
.status-badge.st-cancelled { background: #f1f1f1; color: #888; }
.status-badge.st-pending { background: #fff3d6; color: #a5720b; }
.status-badge.st-changed { background: #ffe9df; color: #c1552d; }

.card-datetime {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0;
}
.card-datetime .dt-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  font-size: 17px;
  box-shadow: 0 2px 6px rgba(15,107,130,0.12);
  flex-shrink: 0;
}
.dt-main {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
}
.dt-sub {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 2px;
}

.card-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  padding: 0 6px;
  margin-top: 10px;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-label {
  font-size: 11.5px;
  color: var(--ink-300);
  font-weight: 600;
}
.detail-value {
  font-size: 13.5px;
  color: var(--ink-700);
  word-break: break-all;
}

.card-note {
  margin: 14px 6px 0;
  padding: 12px 14px;
  background: #fffaf0;
  border: 1px dashed #ffdca8;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.55;
  white-space: pre-wrap;
}
.card-note .note-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #c1832b;
  margin-bottom: 4px;
}

.card-changed-note {
  margin: 10px 6px 0;
  padding: 10px 14px;
  background: #fff3ef;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: #a24a2c;
}

/* ---------- info section ---------- */
.info-section {
  position: relative;
  z-index: 1;
  padding: 20px 24px 80px;
}
.info-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  text-align: left;
}
.info-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
}
.info-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink-900);
}
.info-card p {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--teal-900);
  color: rgba(255,255,255,0.85);
  padding: 34px 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--white);
}
.footer-note {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .mobile-break { display: none; }
  .hero-section { padding: 48px 18px 28px; }
  .hero-title { font-size: 26px; }
  .hero-desc { font-size: 14.5px; }
  .search-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 10px;
  }
  .search-field { padding: 4px 6px; }
  #search-input { padding: 10px 4px; font-size: 15px; }
  .btn-search { justify-content: center; padding: 14px 20px; }
  .info-inner { grid-template-columns: 1fr; }
  .card-detail-grid { grid-template-columns: 1fr; }
  .reservation-card { padding: 18px; }
  .card-top { padding-left: 0; }
  .card-detail-grid { padding: 0; }
  .card-note, .card-changed-note { margin-left: 0; margin-right: 0; }
}

@media (max-width: 420px) {
  .header-inner { padding: 14px 16px; }
  .brand-text { font-size: 17px; }
}
