/* Hiệp hội Du lịch tỉnh Gia Lai — trang Giới thiệu
   Palette theo infographic mẫu: cam, xám than, trắng bạc, nền sọc chéo */

:root {
  --cam: #E8501E;
  --cam-dam: #C43E12;
  --cam-nhat: #F06A3C;
  --than: #3A4148;
  --than-dam: #2A3036;
  --than-nhat: #4A535C;
  --bac-1: #F4F5F7;
  --bac-2: #E2E5E9;
  --bac-3: #C8CDD3;
  --nen: #C9CED4;
  --nen-dam: #B7BDC4;
  --chu: #2A3036;
  --chu-phu: #5B636B;
  --trang: #FFFFFF;
  --vang-mau: #C9891A;
  --bong: 0 10px 28px rgba(42, 48, 54, 0.18);
  --ban-kinh: 18px;
  --font: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--chu);
  background-color: var(--nen);
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.28) 0 1px,
      transparent 1px 9px
    ),
    linear-gradient(180deg, #d5d9de 0%, #c2c7cd 40%, #b8bec5 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cam); text-decoration: none; }

.app {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 0 0 96px;
  position: relative;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 20px 16px;
  background: linear-gradient(180deg, rgba(58, 65, 72, 0.96), rgba(42, 48, 54, 0.94));
  color: var(--trang);
  box-shadow: 0 8px 24px rgba(42, 48, 54, 0.28);
}

.topbar .eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bac-3);
  font-weight: 500;
}

.topbar h1 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 2px 0 4px;
}

.topbar .eng {
  font-size: 12px;
  color: var(--bac-3);
  font-weight: 400;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cam);
  color: var(--trang);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(232, 80, 30, 0.35);
}

.pill .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0;
}

/* ---------- Wheel ---------- */
.hero-wheel {
  padding: 18px 8px 18px;
  text-align: center;
}

.soon-tip {
  margin: 8px 24px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--than);
  background: #fff4e8;
  border: 1px solid rgba(232, 80, 30, 0.35);
  border-radius: 12px;
  padding: 8px 12px;
}

.hero-wheel .pill { margin-bottom: 8px; }

.hero-lead {
  font-size: 13px;
  color: var(--chu-phu);
  max-width: 34em;
  margin: 8px auto 4px;
  padding: 0 16px;
}

.wheel-wrap {
  width: min(100%, 400px);
  margin: 0 auto;
  position: relative;
}

.wheel-wrap svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 14px 22px rgba(42, 48, 54, 0.28));
}

.wedge {
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  transform-origin: 200px 200px;
  transform-box: fill-box;
}

.wedge:hover,
.wedge:focus-visible {
  filter: brightness(1.08);
}

.wedge.is-active {
  filter: brightness(1.06);
}

.wedge-label {
  pointer-events: none;
  font-family: var(--font);
}

.center-badge {
  pointer-events: none;
}

/* ---------- Sections ---------- */
main { padding: 8px 16px 24px; }

.section {
  margin: 22px 0 28px;
  scroll-margin-top: 128px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card {
  background: linear-gradient(180deg, #f7f8fa 0%, #eef0f3 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--ban-kinh);
  box-shadow: var(--bong);
  padding: 16px 16px 14px;
}

.tomtat {
  font-size: 14.5px;
  color: var(--than);
}

.note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--chu-phu);
  background: rgba(201, 137, 26, 0.1);
  border-left: 3px solid var(--vang-mau);
  padding: 8px 10px;
  border-radius: 0 10px 10px 0;
}

.note.mau {
  background: rgba(232, 80, 30, 0.08);
  border-left-color: var(--cam);
}

.badge-mau {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cam-dam);
  background: #fde8e1;
  border: 1px dashed var(--cam);
  border-radius: 999px;
  padding: 3px 8px;
  margin-top: 6px;
}

.badge-xacnhan {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #7a5a08;
  background: #f8e7b8;
  border-radius: 999px;
  padding: 3px 8px;
  margin-top: 6px;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  position: relative;
  padding: 6px 0 0 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--cam), var(--than), var(--bac-3));
  border-radius: 2px;
}

.t-item {
  position: relative;
  padding: 0 0 16px 52px;
}

.t-item:last-child { padding-bottom: 0; }

.t-dot {
  position: absolute;
  left: 10px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cam);
  color: var(--trang);
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(232, 80, 30, 0.18);
  z-index: 1;
}

.t-item:nth-child(even) .t-dot {
  background: var(--than);
  box-shadow: 0 0 0 4px rgba(58, 65, 72, 0.16);
}

.t-card { padding: 14px 14px 12px; }

.t-moc {
  font-size: 12px;
  font-weight: 800;
  color: var(--cam);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.t-card h3 {
  font-size: 15.5px;
  line-height: 1.35;
  margin: 2px 0 8px;
  color: var(--than-dam);
}

.t-card p { font-size: 13.5px; color: var(--chu); }

.t-thieu {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--cam-dam);
}

.sources {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--chu-phu);
}

.sources a { font-weight: 600; }

/* ---------- Presidents ---------- */
.pres-list {
  display: grid;
  gap: 12px;
}

.pres-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.pres-card.is-current {
  background: linear-gradient(135deg, #fff6f2, #f3f4f6 55%, #e8eaed);
  border: 1px solid rgba(232, 80, 30, 0.35);
}

.pres-card.is-mau {
  border: 1px dashed var(--bac-3);
  background: repeating-linear-gradient(
    -45deg,
    #f3f4f6 0 8px,
    #eceef1 8px 16px
  );
}

.avatar {
  width: 76px;
  height: 84px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--than-nhat), var(--than-dam));
  display: grid;
  place-items: center;
  color: var(--trang);
  position: relative;
}

.pres-card.is-current .avatar {
  background: linear-gradient(160deg, var(--cam-nhat), var(--cam-dam));
}

.avatar svg { width: 40px; height: 40px; opacity: 0.9; }

.pres-body h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--than-dam);
  line-height: 1.25;
}

.pres-body .role {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cam);
  margin-top: 2px;
}

.pres-body .org,
.pres-body .term,
.pres-body .ghi {
  font-size: 12.5px;
  color: var(--chu-phu);
  margin-top: 2px;
}

/* ---------- Org chart ---------- */
.org {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.org-node {
  width: 100%;
  text-align: center;
  padding: 12px 12px 10px;
  color: var(--trang);
  position: relative;
}

.org-node h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.org-node p {
  font-size: 12.5px;
  opacity: 0.92;
  margin-top: 4px;
  text-align: left;
}

.org-node.cap-1 {
  background: linear-gradient(135deg, var(--cam-nhat), var(--cam-dam));
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(196, 62, 18, 0.28);
}

.org-node.cap-2 {
  background: linear-gradient(135deg, var(--than-nhat), var(--than-dam));
  border-radius: 16px;
}

.org-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.org-node.cap-3 {
  background: linear-gradient(160deg, #f7f8fa, #d5d8dc);
  color: var(--than-dam);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 14px rgba(42, 48, 54, 0.12);
}

.org-node.cap-4 {
  background: var(--than);
  color: var(--trang);
  border-radius: 14px;
}

.org-connector {
  width: 3px;
  height: 14px;
  background: var(--cam);
  border-radius: 2px;
}

.dieule-box {
  margin-top: 12px;
  font-size: 13px;
}

.dieule-box h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cam);
  margin-bottom: 6px;
}

.dieule-box li { margin: 0 0 6px 1.1em; font-size: 13px; }

/* ---------- Board ---------- */
.board-lead { margin-bottom: 12px; font-size: 14px; }

.member-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.member-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.slot-card {
  padding: 12px 10px;
  text-align: center;
  border: 1px dashed var(--bac-3);
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.slot-card .avatar {
  width: 58px;
  height: 64px;
  background: linear-gradient(160deg, #9aa2aa, #6b737b);
}

.slot-card .avatar svg { width: 30px; height: 30px; }

.slot-card strong { font-size: 13px; color: var(--than); }

.slot-card span { font-size: 11.5px; color: var(--chu-phu); }

.uv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.uv-cell {
  aspect-ratio: 1 / 1.1;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #9aa2aa, #5f676f);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
}

.uv-cell svg { width: 55%; height: 55%; }

/* ---------- Footer / sources page bit ---------- */
.page-foot {
  margin: 8px 16px 24px;
  font-size: 12.5px;
  color: var(--chu-phu);
  text-align: center;
}

.page-foot a { font-weight: 700; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(42, 48, 54, 0.96);
  backdrop-filter: blur(10px);
  color: var(--bac-3);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(42, 48, 54, 0.3);
  z-index: 30;
}

.tabbar a,
.tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  padding: 4px 0;
}

.tabbar svg { width: 22px; height: 22px; }

.tabbar .active { color: var(--cam-nhat); }

.tabbar .soon { opacity: 0.45; }

/* ---------- Loading / error ---------- */
.status {
  padding: 24px 20px;
  text-align: center;
  color: var(--chu-phu);
}

@media (min-width: 720px) {
  .app { width: min(100%, 560px); padding-top: 8px; }
  .member-grid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); }
}
