/*
 * TCM Thailand - components.css
 * Hero slideshow, knowledge, advisor, wellness, directory, products, about
 */

/* ── SLIDE IMAGE BACKGROUNDS ── */
.s1-bg { background: linear-gradient(135deg,#1A2E1C,#2C4A2E,#1E3820); }
.s2-bg { background: linear-gradient(135deg,#2A2010,#4A3520,#3A2A15); }
.s3-bg { background: linear-gradient(135deg,#1A2030,#2A3545,#1E2A3A); }

/* ── ARTICLE THUMB COLORS ── */
.thumb-theory   { background: linear-gradient(135deg,#1E2B20,#2C3B2D); }
.thumb-herb     { background: linear-gradient(135deg,#1A2510,#2A3B18); }
.thumb-food     { background: linear-gradient(135deg,#2A1E10,#3A2A18); }
.thumb-meridian { background: linear-gradient(135deg,#1A1E2A,#252D3A); }
.thumb-disease  { background: linear-gradient(135deg,#221A1A,#352828); }
.thumb-season   { background: linear-gradient(135deg,#1A2220,#2A3530); }
.article-thumb i { font-size:28px; opacity:0.3; color:#A8C5A0; }

/* ── KNOWLEDGE: FILTER BAR ── */
.filter-bar-knowledge { flex-wrap: wrap; }

/* ── ADVISOR PAGE ── */
.advisor-steps {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}
.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(139,115,85,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #8B7355; font-weight: 600;
  flex-shrink: 0;
  transition: all 0.3s;
}
.step-circle.done { background: #2C3B2D; border-color: #2C3B2D; color: #A8C5A0; }
.step-circle.active { background: #C9973A; border-color: #C9973A; color: #2C2A1E; }
.step-line {
  flex: 1; height: 1px;
  background: rgba(139,115,85,0.2);
  margin: 0 10px;
  transition: background 0.3s;
}
.step-line.done { background: #2C3B2D; }

/* Questionnaire */
.q-card {
  background: #fff;
  border: 0.5px solid rgba(139,115,85,0.15);
  border-radius: 10px;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
}
.q-option {
  background: #F7F3EC;
  border: 1px solid rgba(139,115,85,0.18);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #4A3A2A;
  transition: all 0.15s;
  text-align: left;
  font-family: 'Sarabun', sans-serif;
  width: 100%;
}
.q-option:hover { border-color: rgba(201,151,58,0.4); background: #FBF7EE; }
.q-option.selected { border-color: #C9973A; background: rgba(201,151,58,0.08); }

/* Chatbot */
.chat-container {
  background: #fff;
  border: 0.5px solid rgba(139,115,85,0.15);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-bot { align-self: flex-start; max-width: 80%; }
.msg-user { align-self: flex-end; max-width: 80%; }
.msg-bubble { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.msg-bot .msg-bubble  { background: #F0EBE0; color: #2C2A1E; border-radius: 4px 12px 12px 12px; }
.msg-user .msg-bubble { background: #2C3B2D; color: #C8D8C4; border-radius: 12px 4px 12px 12px; }
.typing-indicator {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  background: #F0EBE0;
  border-radius: 4px 12px 12px 12px;
  width: 60px;
}
.typing-indicator span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #8B7355;
  animation: typingBounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-5px); }
}

/* Result bars */
.result-bar-fill {
  height: 6px; border-radius: 3px;
  transition: width 0.8s ease;
}

/* ── SEASON TABS ── */
.season-tab {
  border-radius: 10px;
  padding: 1.2rem 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.season-tab.spring { background: linear-gradient(135deg,#1E3020,#2A4530); }
.season-tab.summer { background: linear-gradient(135deg,#302010,#4A3518); }
.season-tab.autumn { background: linear-gradient(135deg,#2A1A10,#3D2A18); }
.season-tab.winter { background: linear-gradient(135deg,#101828,#18253A); }
.season-tab.spring.active, .season-tab.spring:hover { border-color: rgba(120,192,100,0.5); }
.season-tab.summer.active, .season-tab.summer:hover { border-color: rgba(220,160,60,0.5); }
.season-tab.autumn.active, .season-tab.autumn:hover { border-color: rgba(200,120,60,0.5); }
.season-tab.winter.active, .season-tab.winter:hover { border-color: rgba(100,150,210,0.5); }
.season-panel { display: none; }
.season-panel.active { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ── DIRECTORY: MAP PANEL ── */
.map-panel {
  background: #1E2B1F;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.map-legend {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(26,42,27,0.9);
  border: 0.5px solid rgba(168,197,160,0.15);
  border-radius: 6px;
  padding: 10px 14px;
}

/* Institution card active state */
.inst-card.active { background: #fff; border-left: 2.5px solid #C9973A; }

/* ── PRODUCT CARD THUMB COLORS ── */
.pt-lingzhi     { background: linear-gradient(135deg,#1A1E10,#2A2E18,#1E2814); }
.pt-notoginseng { background: linear-gradient(135deg,#1E1010,#2E1818,#281414); }
.pt-spore       { background: linear-gradient(135deg,#101820,#182030,#102028); }
.pt-astragalus  { background: linear-gradient(135deg,#1A1810,#2A2818,#201E14); }
.pt-wolfberry   { background: linear-gradient(135deg,#201010,#301818,#281010); }
.pt-ginseng     { background: linear-gradient(135deg,#181A10,#28281A,#1E2014); }
.pcard-thumb i { font-size:42px; opacity:0.22; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 12px;
  max-width: 520px; width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

/* ── ABOUT: FAQ ── */
.faq-item {
  background: #fff;
  border: 0.5px solid rgba(139,115,85,0.13);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: none; border: none; cursor: pointer;
  text-align: left;
  font-family: 'Sarabun', sans-serif;
  gap: 12px;
}
.faq-question-text { font-size: 13.5px; font-weight: 600; color: #2C2A1E; line-height: 1.4; }
.faq-icon {
  width: 24px; height: 24px;
  background: #EEE8DD; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #8B7355; font-size: 13px; flex-shrink: 0;
  transition: transform 0.25s, background 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: #2C3B2D; color: #A8C5A0; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 18px 16px;
  font-size: 13px; color: #4A3A2A;
  line-height: 1.75;
  border-top: 0.5px solid #F0EBE0;
}
.faq-answer-inner p { padding-top: 12px; }

/* ── CONTACT CHANNEL CARDS ── */
.contact-channel {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(168,197,160,0.12);
  border-radius: 8px; padding: 12px 16px;
  text-decoration: none;
  transition: border-color 0.2s;
  margin-bottom: 10px;
}
.contact-channel:hover { border-color: rgba(168,197,160,0.3); }
.contact-channel.line  { border-color: rgba(6,199,85,0.2); }
.contact-channel.line:hover { border-color: rgba(6,199,85,0.5); }
.contact-channel.wa    { border-color: rgba(37,211,102,0.2); }
.contact-channel.wa:hover { border-color: rgba(37,211,102,0.5); }

/* ── FORM INPUTS (dark bg) ── */
.form-dark {
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  padding: 9px 12px;
  color: #F0E8D6;
  font-size: 13px;
  font-family: 'Sarabun', sans-serif;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.form-dark:focus { border-color: rgba(201,151,58,0.4); }
.form-dark::placeholder { color: rgba(240,232,214,0.28); }

/* ── PARTNER CARDS ── */
.partner-type-content  { background: rgba(168,197,160,0.12); color: #4A7A44; }
.partner-type-academic { background: rgba(201,151,58,0.12);  color: #8B6820; }
.partner-type-product  { background: rgba(120,160,216,0.12); color: #4870A8; }

/* ── PAGINATION ── */
.page-numbers {
  display: flex; gap: 6px;
  list-style: none;
  justify-content: center;
}
.page-numbers li a,
.page-numbers li span {
  width: 32px; height: 32px;
  background: #fff;
  border: 0.5px solid rgba(139,115,85,0.2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: #4A3A2A;
  text-decoration: none;
  transition: background 0.15s;
}
.page-numbers li a:hover { background: #EEE8DD; }
.page-numbers li span.current { background: #2C3B2D; color: #A8C5A0; border-color: #2C3B2D; }



