/* ── home-sections.css — owner: story-card (homepage variant), country-card v2
   (2×2 collage cover), hero-shelf/hero-track-stack. Dipake: HOMEPAGE doang
   (extra_css_files generate_index_pages.py). Card base = cards.css, sec-head
   base = components.css — JANGAN taruh duplikat di sini. ── */

/* CP-H2: story card v2 — tag accent, judul, hook, CTA */
.story-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  border-radius: var(--r-m);
  padding: 14px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.story-card + .story-card {
  margin-top: 10px;
}

.story-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  text-decoration: none;
}

.story-card img {
  flex: 0 0 auto;
  width: 100px;
  height: 68px;
  border-radius: var(--r-s);
  object-fit: cover;
  display: block;
}

.story-card-body {
  min-width: 0;
  flex: 1;
}

.story-card-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent);
  font-size: var(--fs-kicker);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.story-card-body strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-card);
  line-height: 1.3;
  margin-bottom: 4px;
}

.story-card-hook {
  display: block;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.45;
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.story-card-cta {
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: 700;
}

.hero-shelf-heading {
  display: grid;
  gap: 6px;
  align-items: start;
  margin-bottom: 12px;
}

.hero-shelf-heading strong {
  max-width: 18ch;
  color: var(--text);
  font-size: var(--fs-heading-m);
  line-height: 1.12;
  text-align: left;
}

.hero-track-stack {
  display: grid;
  gap: 10px;
}

/* CP-H2: country card v2 — 2×2 collage cover, bukan bendera raksasa */
.country-card {
  position: relative;
  background: var(--surface);
  border: 1px solid transparent;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.country-card-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-m) var(--r-m) 0 0;
}

.country-card-tile {
  overflow: hidden;
  background: var(--aura-soft);
}
.country-card-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.country-card-tile--empty {
  background: linear-gradient(135deg, var(--aura-soft), var(--surface-2));
}

.country-card-flag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  font-size: 1.1rem;
  line-height: 1;
  background: rgba(var(--surface-rgb), 0.78);
  border-radius: var(--r-pill);
  padding: 3px 8px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(var(--line-rgb), 0.5);
  pointer-events: none;
}

.country-card-body {
  position: relative;
  z-index: 1;
  background: var(--surface);
}

.mood-visual::after,
.country-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 34%, rgba(255,255,255,0.07) 34% 38%, transparent 38% 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
}

.mood-visual b,
.country-visual b {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: rgba(var(--text-rgb), 0.92);
  font-size: var(--fs-body);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* CP-A3: country visual = SATU rule netral aura/surface (nth-child positional
   coloring dibunuh — pola yang udah kita matiin di mood card) */
.country-visual { background: linear-gradient(160deg, color-mix(in srgb, var(--aura) 42%, var(--surface-2)), var(--surface)); }
