/* ═══════════════════════════════════════════════════════════
   suc-khoe.css  –  Sức khoẻ & Thể chất
   Màu nhấn: #0d9488 (teal/xanh ngọc) – màu y tế, sạch sẽ
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

:root {
  --sk-teal:    #0d9488;
  --sk-teal2:   #0f766e;
  --sk-teal3:   #14b8a6;
  --sk-blue:    #0284c7;
  --sk-green:   #16a34a;
  --sk-orange:  #ea580c;
  --sk-red:     #dc2626;
  --sk-amber:   #d97706;
  --sk-purple:  #7c3aed;
  --sk-pink:    #db2777;
  --sk-bg:      #f6faf9;
  --sk-white:   #ffffff;
  --sk-text:    #1a2e2c;
  --sk-muted:   #64748b;
  --sk-border:  rgba(13,148,136,.15);

  /* Màu trạng thái sức khoẻ */
  --st-low:     #0284c7;  /* thiếu - xanh dương */
  --st-normal:  #16a34a;  /* bình thường - xanh lá */
  --st-warn:    #d97706;  /* cảnh báo - cam */
  --st-high:    #dc2626;  /* cao - đỏ */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  background: var(--sk-bg);
  color: var(--sk-text);
  font-size: 15px;
  line-height: 1.65;
}

/* Nền trang trí nhẹ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(13,148,136,.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(2,132,199,.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
#site-header, .sk-page, #site-footer { position: relative; z-index: 1; }

.sk-page { width: 92%; max-width: 1200px; margin: 0 auto; padding: 1.75rem 0 4rem; }

/* ── Breadcrumb ── */
.sk-bc { font-size: .78rem; color: var(--sk-muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sk-bc a { color: var(--sk-teal); text-decoration: none; font-weight: 500; }
.sk-bc a:hover { text-decoration: underline; }
.sk-bc-sep { color: #ccc; }

/* ═══════════════════════════════════════════════════════════
   HERO (index)
═══════════════════════════════════════════════════════════ */
.sk-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13,148,136,.25);
}
.sk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,.12) 0%, transparent 25%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,.08) 0%, transparent 25%);
}
.sk-hero-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 300px; height: 300px;
  opacity: .07;
  pointer-events: none;
}
.sk-hero-content { position: relative; z-index: 1; }
.sk-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 1rem;
}
.sk-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: .75rem;
}
.sk-hero p {
  font-size: .92rem; color: rgba(255,255,255,.85);
  line-height: 1.8; max-width: 600px; margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   GRID CARDS (index)
═══════════════════════════════════════════════════════════ */
.sk-section-title {
  font-size: 1.15rem; font-weight: 700; color: var(--sk-text);
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem;
}
.sk-section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--sk-teal), transparent);
  border-radius: 2px;
}
.sk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem; margin-bottom: 2.5rem;
}
.sk-card {
  background: var(--sk-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  text-decoration: none; color: var(--sk-text);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,.05);
}
.sk-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(13,148,136,.15); }
.sk-card-top {
  height: 80px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.sk-card-body { padding: .9rem 1.1rem 1.1rem; }
.sk-card-title {
  font-size: .98rem; font-weight: 700; color: var(--sk-text);
  margin-bottom: .35rem; text-align: center;
}
.sk-card-desc {
  font-size: .8rem; color: var(--sk-muted); line-height: 1.6; text-align: center;
}
.sk-card-cta {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: .7rem; font-size: .76rem; font-weight: 700; color: var(--sk-teal);
}

/* ═══════════════════════════════════════════════════════════
   TOOL PAGE
═══════════════════════════════════════════════════════════ */
.sk-tool-hero {
  border-radius: 16px; padding: 2rem; margin-bottom: 1.75rem;
  position: relative; overflow: hidden; color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.sk-tool-hero::after {
  content: ''; position: absolute; bottom: -50px; right: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.08); pointer-events: none;
}
.sk-tool-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.25rem; }
.sk-tool-hero-emoji { font-size: 3rem; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); }
.sk-tool-hero h1 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); font-weight: 800; color: #fff; margin: 0 0 .3rem; line-height: 1.25; }
.sk-tool-hero p { font-size: .85rem; color: rgba(255,255,255,.85); margin: 0; line-height: 1.6; }

.sk-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }

.sk-card-box {
  background: var(--sk-white); border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,.06); padding: 1.5rem;
  margin-bottom: 1.25rem; border: 1px solid rgba(0,0,0,.05);
}
.sk-card-box:last-child { margin-bottom: 0; }
.sk-card-box-title {
  font-size: .92rem; font-weight: 700; color: var(--sk-teal);
  border-left: 4px solid var(--sk-teal); padding-left: .6rem; margin: 0 0 1rem;
}

/* ── Inputs ── */
.sk-field { margin-bottom: .9rem; }
.sk-label {
  display: block; font-size: .74rem; font-weight: 700; color: var(--sk-muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: .4rem;
}
.sk-inp-wrap {
  display: flex; align-items: center; border: 1.5px solid #e2e8e6;
  border-radius: 10px; background: #fff; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.sk-inp-wrap:focus-within { border-color: var(--sk-teal); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.sk-inp-wrap input, .sk-inp-wrap select {
  flex: 1; border: none; outline: none; font-family: inherit;
  font-size: .95rem; font-weight: 600; color: var(--sk-text);
  padding: 11px 12px; background: transparent;
}
.sk-inp-wrap select { cursor: pointer; }
.sk-inp-sfx {
  background: #f0faf8; color: var(--sk-teal); font-weight: 700; font-size: .82rem;
  padding: 11px 14px; border-left: 1.5px solid #d4ede9; white-space: nowrap; flex-shrink: 0;
}

/* Gender / radio toggle */
.sk-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sk-toggle-opt {
  border: 1.5px solid #e2e8e6; border-radius: 10px; padding: 11px;
  text-align: center; cursor: pointer; transition: .2s; font-weight: 600;
  font-size: .9rem; color: var(--sk-muted); background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.sk-toggle-opt:hover { border-color: var(--sk-teal3); }
.sk-toggle-opt.active { background: var(--sk-teal); border-color: var(--sk-teal); color: #fff; }

/* Activity select full */
.sk-select-full {
  width: 100%; border: 1.5px solid #e2e8e6; border-radius: 10px;
  padding: 11px 12px; font-family: inherit; font-size: .92rem; font-weight: 600;
  color: var(--sk-text); background: #fff; cursor: pointer; outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%230d9488' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.sk-select-full:focus { border-color: var(--sk-teal); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }

/* ── Button ── */
.sk-btn {
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--sk-teal), var(--sk-teal2));
  color: #fff; font-family: inherit; font-size: .95rem; font-weight: 700;
  cursor: pointer; letter-spacing: .3px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(13,148,136,.3);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sk-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,148,136,.4); }

/* ═══════════════════════════════════════════════════════════
   KẾT QUẢ
═══════════════════════════════════════════════════════════ */
.sk-result { display: none; margin-top: 1.25rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--sk-border); box-shadow: 0 4px 20px rgba(0,0,0,.06); animation: sk-up .4s ease; }
.sk-result.show { display: block; }
@keyframes sk-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Header kết quả với số lớn + thanh đo */
.sr-head {
  padding: 1.5rem; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--sk-teal2), var(--sk-teal));
  transition: background .3s;
}
.sr-head.st-low    { background: linear-gradient(135deg, #0369a1, #0284c7); }
.sr-head.st-normal { background: linear-gradient(135deg, #15803d, #16a34a); }
.sr-head.st-warn   { background: linear-gradient(135deg, #b45309, #d97706); }
.sr-head.st-high   { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.sr-big-num { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: .25rem; }
.sr-big-unit { font-size: 1rem; font-weight: 500; opacity: .85; }
.sr-status { display: inline-block; margin-top: .5rem; background: rgba(255,255,255,.2); padding: 4px 16px; border-radius: 20px; font-size: .85rem; font-weight: 700; }

/* Thanh đo trạng thái */
.sr-gauge { padding: 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid #f0f0f0; }
.sr-gauge-bar { height: 12px; border-radius: 6px; position: relative; background: linear-gradient(90deg, #0284c7 0%, #16a34a 33%, #d97706 66%, #dc2626 100%); margin: 1.5rem 0 .5rem; }
.sr-gauge-pointer { position: absolute; top: -7px; width: 4px; height: 26px; background: #1a2e2c; border-radius: 3px; transform: translateX(-50%); box-shadow: 0 0 0 3px rgba(255,255,255,.8), 0 2px 6px rgba(0,0,0,.3); transition: left .5s ease; }
.sr-gauge-labels { display: flex; justify-content: space-between; font-size: .68rem; color: var(--sk-muted); font-weight: 600; }

/* Bảng thông tin */
.sr-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-bottom: 1px solid #f0f0f0; }
.sr-info-cell { padding: .85rem 1rem; text-align: center; border-right: 1px solid #f5f5f5; }
.sr-info-cell:last-child { border-right: none; }
.sr-info-lbl { font-size: .65rem; font-weight: 700; color: var(--sk-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .25rem; }
.sr-info-val { font-size: .95rem; font-weight: 700; color: var(--sk-teal); }

/* Phần phân tích (đọc dài) */
.sr-analysis { padding: 1.25rem 1.5rem; border-bottom: 1px solid #f5f5f5; }
.sr-analysis:last-child { border-bottom: none; }
.sr-analysis-title { font-size: .9rem; font-weight: 700; color: var(--sk-teal); margin-bottom: .65rem; display: flex; align-items: center; gap: .45rem; }
.sr-analysis-text { font-size: .87rem; color: #3d4f4d; line-height: 1.9; }
.sr-analysis-text strong { color: var(--sk-text); }
.sr-analysis-text p { margin-bottom: .7rem; }
.sr-analysis-text p:last-child { margin-bottom: 0; }
.sr-analysis-text ul { padding-left: 1.2rem; margin: .4rem 0; }
.sr-analysis-text li { margin-bottom: .35rem; }

/* Lời khuyên box */
.sr-tips { background: linear-gradient(135deg, #f0faf8, #f6fffe); border-top: 2px solid #cce8e3; padding: 1.1rem 1.5rem; }
.sr-tips-title { font-size: .85rem; font-weight: 700; color: var(--sk-teal2); margin-bottom: .6rem; display: flex; align-items: center; gap: .4rem; }
.sr-tips ul { list-style: none; padding: 0; margin: 0; }
.sr-tips li { font-size: .84rem; color: #2d4a47; line-height: 1.7; padding-left: 1.5rem; position: relative; margin-bottom: .4rem; }
.sr-tips li::before { content: '✓'; position: absolute; left: 0; color: var(--sk-green); font-weight: 700; }

/* Cảnh báo */
.sr-warn { background: #fffbeb; border-top: 2px solid #fde68a; padding: 1rem 1.5rem; font-size: .82rem; color: #78350f; line-height: 1.7; }
.sr-warn::before { content: '⚠️ '; }

/* ── Info cards (cột phải) ── */
.sk-info-card {
  background: var(--sk-white); border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,.06); padding: 1.25rem;
  margin-bottom: 1.1rem; border: 1px solid rgba(0,0,0,.05);
}
.sk-info-card:last-child { margin-bottom: 0; }
.sk-info-card h3 { font-size: .88rem; font-weight: 700; color: var(--sk-teal); border-left: 3px solid var(--sk-teal); padding-left: .55rem; margin: 0 0 .8rem; }
.sk-info-card p, .sk-info-card li { font-size: .82rem; color: #475569; line-height: 1.75; }
.sk-info-card ul { padding-left: 1.1rem; margin-top: .3rem; }

/* Bảng phân loại */
.sk-class-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.sk-class-table tr { border-bottom: 1px solid #f0f0f0; }
.sk-class-table tr:last-child { border-bottom: none; }
.sk-class-table td { padding: .5rem .4rem; }
.sk-class-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.sk-class-range { font-weight: 700; color: var(--sk-text); white-space: nowrap; }
.sk-class-name { color: var(--sk-muted); }

/* ── Xem thêm ── */
.sk-xemthem { background: var(--sk-white); border-radius: 14px; box-shadow: 0 2px 14px rgba(0,0,0,.06); padding: 1.25rem 1.5rem; margin-top: 1.25rem; border: 1px solid rgba(0,0,0,.05); }
.sk-xemthem-title { font-size: .88rem; font-weight: 700; color: var(--sk-text); margin-bottom: .8rem; display: flex; align-items: center; gap: .4rem; }
.sk-xemthem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .55rem; }
.sk-xemthem-item { text-decoration: none; background: #f6faf9; border: 1.5px solid var(--sk-border); border-radius: 10px; padding: .6rem .75rem; text-align: center; transition: .2s; }
.sk-xemthem-item:hover { background: #e6f7f4; border-color: var(--sk-teal); transform: translateY(-2px); }
.sk-xemthem-emoji { font-size: 1.4rem; display: block; margin-bottom: .2rem; }
.sk-xemthem-name { font-size: .74rem; font-weight: 700; color: var(--sk-text); }

/* ── SEO ── */
.sk-seo { background: var(--sk-white); border-radius: 14px; box-shadow: 0 2px 14px rgba(0,0,0,.06); padding: 1.5rem; margin-top: 1.5rem; border-top: 3px solid var(--sk-teal); }
.sk-seo h2 { font-size: .95rem; color: var(--sk-teal); border-left: 4px solid var(--sk-teal); padding-left: .6rem; margin: 0 0 .8rem; }
.sk-seo p { font-size: .84rem; color: #475569; line-height: 1.8; margin-bottom: .5rem; }
.sk-seo p:last-child { margin: 0; }

/* Disclaimer */
.sk-disclaimer { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: .85rem 1rem; margin-top: 1rem; font-size: .78rem; color: #64748b; line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 900px) { .sk-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .sk-grid { grid-template-columns: repeat(2, 1fr); }
  .sk-hero { padding: 2.25rem 1.5rem; }
  .sk-tool-hero { padding: 1.5rem; }
  .sk-tool-hero-inner { flex-direction: column; text-align: center; gap: .75rem; }
}
@media (max-width: 400px) { .sk-grid { grid-template-columns: 1fr; } .sk-page { width: 96%; } }
@media (prefers-reduced-motion: reduce) { .sk-btn, .sk-card { transition: none; } }
