/* === Lê Mai · hi.lemai.com.vn — Hub linktree + bottom sheet ===
   Mobile-first. Voice: quiet luxury. VN + EN + JP.
   Depends on: tokens.css, base.css */

/* === HUB CONTAINER === */
.hub {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--pad-mobile);
  background: var(--paper);
}

.hub-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

/* === AVATAR (circle crop) === */
.hub-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
}
.hub-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === GREETING === */
.hub-greeting {
  margin-bottom: var(--space-5);
}
.hub-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}
.hub-tag-vn {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 6px;
  opacity: 0.92;
}
.hub-tag-en {
  font-family: var(--font-body-en);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent-1);
  margin: 0 0 4px;
  font-style: italic;
}
.hub-tag-jp {
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--accent-1);
  margin: 0;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* === BUTTONS === */
.hub-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.hub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-family: var(--font-heading);
  text-align: left;
  cursor: pointer;
  width: 100%;
  font: inherit;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.hub-btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.hub-btn:hover {
  transform: scale(1.02);
}
@media (hover: none), (pointer: coarse) {
  .hub-btn:hover { transform: none; }
  .hub-btn:active { transform: scale(0.98); }
}

.hub-btn-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.hub-btn-vn {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.2;
}
.hub-btn-en {
  font-family: var(--font-body-en);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0.7;
  line-height: 1.2;
}
.hub-btn-jp {
  font-family: var(--font-jp);
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  line-height: 1.2;
}

.hub-btn-arrow {
  width: 18px;
  height: 18px;
  opacity: 0.55;
  flex-shrink: 0;
  stroke: currentColor;
}
.hub-btn-arrow-ext {
  width: 16px;
  height: 16px;
  opacity: 0.45;
}
.hub-btn-primary .hub-btn-arrow {
  opacity: 0.92;
}

/* === KẾT NỐI === */
.hub-connect {
  text-align: left;
  margin: var(--space-3) 0 var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}
.hub-connect-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 var(--space-3);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.hub-connect-title-vn { display: inline; }
.hub-connect-title-sep {
  display: inline;
  opacity: 0.5;
  margin: 0 6px;
}
.hub-connect-title-jp {
  display: inline;
  font-family: var(--font-jp);
  font-size: 14px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.hub-connect-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hub-connect-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease);
}
.hub-connect-list a:hover {
  border-bottom-color: var(--ink);
}
.hub-connect-list svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  stroke: currentColor;
}

/* === FOOTER MARK === */
.hub-foot {
  margin-top: var(--space-4);
  font-family: var(--font-body-en);
  font-size: 10px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent-1);
  opacity: 0.6;
}

/* =====================================================
   BOTTOM SHEET
   ===================================================== */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
}
.sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: calc(var(--z-modal) + 1);
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(26, 26, 26, 0.12);
}
.sheet.is-open {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--pad-mobile) 14px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.sheet-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  text-align: left;
}
.sheet-title-vn {
  display: block;
  color: var(--ink);
}
.sheet-title-en {
  display: block;
  font-family: var(--font-body-en);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--accent-1);
  margin-top: 2px;
}
.sheet-title-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent-1);
  margin-top: 2px;
}

.sheet-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.sheet-close:hover { background: var(--paper-cool); }

.sheet-list {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 max(var(--space-4), env(safe-area-inset-bottom, 16px));
}

.sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--pad-mobile);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: background var(--dur-fast) var(--ease);
}
.sheet-item:last-child { border-bottom: none; }
.sheet-item:hover, .sheet-item:focus-visible {
  background: var(--paper-cool);
  outline: none;
}

.sheet-item-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.sheet-item-vn {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.25;
}
.sheet-item-en {
  font-family: var(--font-body-en);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--accent-1);
  line-height: 1.2;
}
.sheet-item-jp {
  font-family: var(--font-jp);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-1);
  line-height: 1.2;
}

.sheet-item-meta {
  font-family: var(--font-body-en);
  font-size: 12px;
  color: var(--accent-1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sheet-item-arrow {
  font-size: 14px;
  opacity: 0.6;
}

/* Lock body scroll when sheet open */
body.sheet-open {
  overflow: hidden;
}

/* =====================================================
   ICONS (inline SVG color)
   ===================================================== */
.hub-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* =====================================================
   RESPONSIVE - desktop tweak
   ===================================================== */
@media (min-width: 720px) {
  .hub {
    padding: var(--space-6) var(--pad-tablet);
  }
  .hub-card {
    max-width: 460px;
  }
  .hub-avatar {
    width: 112px;
    height: 112px;
  }
  .hub-name { font-size: 26px; }
  .hub-tag-vn { font-size: 16px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-backdrop, .hub-btn, .hub-social a {
    transition: none;
  }
}
