/* Symbio Interactive — one-screen home hub
   Loaded after styles.css. The whole page must fit one viewport: no page scroll. */

html, body.hub { height: 100%; }

body.hub {
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  word-break: keep-all;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 88% -18%, var(--accent-soft), transparent 62%),
    radial-gradient(760px 420px at -10% 105%, #f6ece2, transparent 60%),
    var(--paper);
}

/* ---------- slim header ---------- */
body.hub .site-header { position: static; flex: 0 0 auto; }
body.hub .site-header .wrap {
  min-height: 0;
  padding: 13px 20px;
  gap: 12px;
}
body.hub .brand { gap: 8px; font-size: 15.5px; }
body.hub .brand svg { width: 22px; height: 22px; }
body.hub .brand small { display: none; }
body.hub .nav { gap: 13px; font-size: 13px; }
body.hub .nav a { color: var(--ink-faint); }
body.hub .lang-toggle { font-size: 12px; padding: 2px; }
body.hub .lang-toggle button { font-size: 12px; padding: 3px 9px; }

/* ---------- main ---------- */
body.hub .hub-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(12px, 2.6vh, 30px) 20px clamp(10px, 2vh, 22px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(12px, 2.2vh, 24px);
  min-height: 0;
}

.hub-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex: 0 0 auto;
}
.hub-intro h1 {
  margin: 0 0 4px;
  font-size: clamp(21px, 2.7vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-weight: 720;
}
.hub-intro .tagline {
  margin: 0;
  font-size: clamp(12px, 1.15vw, 13.5px);
  color: var(--ink-soft);
  letter-spacing: -0.015em;
}
.hub-count {
  margin: 0 0 3px;
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  letter-spacing: -0.005em;
}

/* ---------- app cards ---------- */
.hub-apps-wrap { flex: 0 0 auto; }
.hub-apps {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 14px);
}
.app-card {
  position: relative;
  min-height: clamp(170px, 26vh, 240px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(14px, 2.4vh, 24px) clamp(14px, 1.5vw, 20px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(20, 23, 26, 0.03);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  overflow: hidden;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--card-tint, var(--accent));
  opacity: 0.55;
}
.app-card.c1 { --card-tint: #1f6f5c; }
.app-card.c2 { --card-tint: #2f7fa8; }
.app-card.c3 { --card-tint: #b07a2e; }
.app-card.c2 .app-icon { background: #e6f1f6; }
.app-card.c3 .app-icon { background: #f8efe0; }
.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-2px);
  border-color: #cfcabc;
  box-shadow: 0 14px 26px -18px rgba(20, 23, 26, 0.5);
  text-decoration: none;
}
.app-icon {
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1;
  width: clamp(38px, 5.6vh, 52px);
  height: clamp(38px, 5.6vh, 52px);
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 2px;
}
.app-name {
  font-size: clamp(14.5px, 1.5vw, 19px);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.app-tag {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.4;
}
.app-desc {
  font-size: clamp(11.5px, 1.02vw, 13.5px);
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 26ch;
}
.app-open {
  margin-top: auto;
  padding: 6px 13px;
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}
.app-open::after { content: "→"; font-weight: 400; }

/* ---------- channels ---------- */
.hub-channels { flex: 0 0 auto; }
.hub-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--ink-faint);
  margin: 0 0 9px;
}
.hub-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(12px, 1.1vw, 13.5px);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip-link:hover { border-color: #cfcabc; background: #fffdf7; text-decoration: none; }
.chip-mark {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #fff;
  flex: 0 0 auto;
}
.chip-mark.yt { background: #e5342b; }
.chip-mark.ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.chip-sub {
  font-size: 10px;
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: 0;
}

/* ---------- coupang banner ---------- */
.hub-ad {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ad-panel {
  position: relative;
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}
.ad-tag {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  line-height: 1.5;
}
.ad-slot {
  width: 320px;
  max-width: 100%;
  min-height: 120px;
  border-radius: 10px;
  overflow: hidden;
}
.ad-slot iframe { display: block; border: 0; }
.ad-note {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: -0.01em;
}

/* ---------- footer ---------- */
body.hub .hub-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-faint);
}
body.hub .hub-footer .wrap {
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px 16px;
}
body.hub .hub-footer a { color: var(--ink-soft); text-decoration: none; }
body.hub .hub-footer a:hover { color: var(--ink); }

/* ---------- tablet / mobile ---------- */
@media (max-width: 860px) {
  body.hub .hub-main { padding: 12px 14px 10px; gap: 10px; }
  .hub-intro .tagline { font-size: 11.5px; line-height: 1.4; margin-top: 3px; max-width: 26ch; }
  .hub-intro h1 { font-size: 23px; margin: 0; }
  .hub-count { font-size: 11px; }
  body.hub .site-header .wrap { padding: 10px 14px; }
  body.hub .brand { font-size: 14px; }
  body.hub .nav { gap: 10px; font-size: 12px; }
  body.hub .hub-footer .wrap { padding: 9px 14px; gap: 3px 10px; font-size: 10.5px; }
  .app-card { padding: 12px 11px; border-radius: 14px; gap: 6px; min-height: clamp(150px, 21.5vh, 195px); }
  .app-card::before { height: 2px; }
  .app-icon { width: 36px; height: 36px; font-size: 19px; border-radius: 11px; }
  .app-name { font-size: 13.5px; display: block; }
  .app-tag { display: none; }
  .app-desc { font-size: 10.8px; line-height: 1.45; max-width: none; }
  .app-open { font-size: 10.5px; padding: 4px 9px; }

  .hub-label { margin-bottom: 7px; font-size: 9.5px; }
  .chips { gap: 6px; }
  .chip-link { font-size: 11.5px; padding: 7px 11px 7px 8px; gap: 6px; }
  .chip-sub { display: none; }
  .chip-mark { width: 17px; height: 17px; font-size: 8px; }

  .ad-panel { padding: 10px 8px; border-radius: 14px; }
  .ad-tag { top: 6px; left: 8px; font-size: 8px; }
  .ad-note { font-size: 9px; }
}

/* very short viewports: tighten rather than hide anything important */
@media (max-height: 700px) {
  .app-card { min-height: 0; }
  .app-icon { width: 32px; height: 32px; font-size: 17px; }
  .hub-intro h1 { font-size: 19px; }
  .ad-panel { padding: 8px; }
}

@media (prefers-color-scheme: dark) {
  body.hub { background: var(--paper); }
  .app-card, .chip-link, .ad-panel { background: var(--paper-2); }
  .app-card:hover { border-color: #3a423e; }
  .chip-link:hover { background: #1d2320; }
}
