/* ============================================================
   Sukoon — Mental Health Counselor Finder (UX concept demo)
   Calm jade theme. Pure CSS, no frameworks.
   ============================================================ */

:root {
  --jade: #0d9488;
  --jade-dark: #0b6e64;
  --jade-deep: #084842;
  --jade-light: #99f6e4;
  --jade-tint: #f0fdfa;
  --paper: #fafaf8;
  --ink: #1e2928;
  --grey: #6f7b79;
  --grey-light: #aab3b0;
  --line: #e1e7e5;
  --card: #ffffff;
  --gold: #d9960c;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

.shell { max-width: 860px; margin: 0 auto; padding: 24px 20px 60px; }

/* ---------- header ---------- */
header { text-align: center; margin-bottom: 8px; }
header h1 {
  margin: 0;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  color: var(--jade-dark);
}
.tagline { margin: 4px 0; font-size: 1.05rem; color: var(--grey); }
.sample-note {
  display: inline-block;
  margin: 10px 0 0;
  padding: 8px 14px;
  background: var(--jade-tint);
  border: 1px solid var(--jade-light);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--jade-dark);
}

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  gap: 8px;
  margin: 22px 0 26px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.tab-btn {
  flex: 1 0 auto;
  padding: 12px 18px;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
}
.tab-btn.active {
  background: var(--jade);
  border-color: var(--jade);
  color: #fff;
}
.panel { display: none; }
.panel.active { display: block; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card h2, .card h3 { margin: 0 0 8px; }
.muted { color: var(--grey); }
.small { font-size: 0.85rem; }
.empty { color: var(--grey); font-style: italic; }
.meta { font-size: 0.85rem; color: var(--grey-light); }
.fee { font-weight: 800; color: var(--jade-dark); }
.fee-big { font-size: 1.5rem; font-weight: 800; color: var(--jade-dark); }

/* ---------- home: mood check-in ---------- */
#mood-row { display: flex; gap: 10px; margin: 12px 0 6px; }
.mood {
  flex: 1;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mood.selected { border-color: var(--jade); background: var(--jade-tint); }
.mood-face {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--grey-light);
  position: relative;
  display: inline-block;
}
.mood-face::before, .mood-face::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--grey);
}
.mood-face::before { left: 9px; }
.mood-face::after { right: 9px; }
.mood-label { font-size: 0.8rem; color: var(--grey); }
.mood.selected .mood-label { color: var(--jade-dark); font-weight: 700; }
#mood-msg { min-height: 1.6em; color: var(--jade-dark); font-weight: 600; }

.article h3 { color: var(--jade-deep); }

/* ---------- counselors ---------- */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.filters input, .filters select {
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--jade-dark); }
#result-count { color: var(--grey); margin-bottom: 10px; }

.counselor { cursor: pointer; transition: transform 0.12s ease; }
.counselor:hover { transform: translateY(-2px); border-color: var(--jade-light); }
.c-top { display: flex; gap: 14px; align-items: flex-start; }
.avatar {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jade-light), var(--jade));
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.c-bottom {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; flex-wrap: wrap;
}
.stars { color: var(--gold); font-weight: 700; }
.verified {
  background: var(--jade-tint); color: var(--jade-dark);
  border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 700;
}
.unverified {
  background: #fef2f2; color: #b91c1c;
  border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 700;
}
.langs { margin-left: auto; color: var(--grey); font-size: 0.9rem; }

/* ---------- modal + booking ---------- */
.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8, 72, 66, 0.45);
  align-items: center; justify-content: center;
  padding: 20px; z-index: 50;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--card);
  border-radius: 24px;
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 28px;
  position: relative;
}
#modal-close {
  position: absolute; top: 14px; right: 16px;
  border: none; background: none;
  font-size: 1.6rem; cursor: pointer; color: var(--grey);
}
.slots { margin: 8px 0 14px; }
.slot-day { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.slot-day .day { font-weight: 700; width: 44px; }
.slot {
  border: 2px solid var(--jade);
  background: #fff; color: var(--jade-dark);
  border-radius: 999px; padding: 8px 14px;
  font-weight: 600; cursor: pointer;
}
.slot.selected { background: var(--jade); color: #fff; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 12px 0; }
.toggle input { width: 20px; height: 20px; accent-color: var(--jade); }
.total { font-size: 1.1rem; }
.btn {
  display: inline-block;
  background: var(--jade); color: #fff;
  border: none; border-radius: 999px;
  padding: 14px 28px; font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 6px;
}
.btn:disabled { background: var(--grey-light); cursor: not-allowed; }
.receipt { text-align: center; }
.receipt-id {
  font-size: 1.8rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--jade-dark);
}

/* ---------- self-check ---------- */
.radio { display: block; padding: 6px 0; cursor: pointer; }
.radio input { accent-color: var(--jade); margin-right: 8px; }
.result h3 { color: var(--jade-dark); }

/* ---------- journal ---------- */
#journal-text {
  width: 100%; min-height: 110px;
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px; font-size: 1rem; font-family: inherit;
  margin-bottom: 10px;
}

/* ---------- crisis ---------- */
.crisis-hero {
  background: var(--jade-dark);
  color: #fff;
  border-radius: 24px;
  padding: 34px 28px;
  text-align: center;
  margin-bottom: 20px;
}
.crisis-hero h2 { margin: 0 0 8px; font-size: 1.9rem; }
.crisis-hero p { opacity: 0.92; margin: 0 0 18px; }
.crisis-hero .btn { background: #fff; color: var(--jade-dark); }
.helpline { display: flex; align-items: center; justify-content: space-between; }
.helpline h3 { margin: 0 0 4px; }
.call {
  background: var(--jade); color: #fff;
  font-weight: 800; border-radius: 999px; padding: 10px 20px;
  white-space: nowrap;
}
.breath-wrap { text-align: center; padding: 26px 0 10px; }
#breath-circle {
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 6px solid var(--jade-light);
  background: var(--jade-tint);
  margin: 18px auto;
  transition: transform 0.12s linear;
}
#breath-label { font-size: 1.4rem; font-weight: 700; color: var(--jade-dark); min-height: 2em; }
.calm-note {
  text-align: center; color: var(--jade-dark);
  background: var(--jade-tint); border-radius: var(--radius);
  padding: 16px; margin-top: 16px;
}

/* ---------- footer ---------- */
footer {
  text-align: center; color: var(--grey-light);
  font-size: 0.85rem; margin-top: 40px;
}

@media (max-width: 560px) {
  header h1 { font-size: 2rem; }
  .tabs { flex-wrap: nowrap; }
}
