/* =========================================================================
   DeColores Arts Collective — Artist Bio + Gallery styles
   Dark "cacao" presentation for individual artist pages, plus the light
   Gallery index that is fed by each artist's selected works.
   Built on colors_and_type.css + site.css. Plain CSS for WordPress port.
   ========================================================================= */

/* ── DARK PAGE SHELL ─────────────────────────────────── */
.bio {
  --bio-accent: var(--marigold);      /* set by Tweaks / per-artist */
  --bio-accent-deep: var(--marigold-deep);
  --bio-surface: #281A13;             /* elevated dark card        */
  --bio-surface-2: #32221A;           /* one step lighter          */
  --bio-line: rgba(247, 239, 226, 0.12);
  --bio-line-strong: rgba(247, 239, 226, 0.22);
  --bio-ink: var(--paper);
  --bio-ink-soft: rgba(247, 239, 226, 0.74);
  --bio-ink-mute: rgba(247, 239, 226, 0.48);
  background: var(--cacao);
  color: var(--bio-ink);
}
.bio.bio--cooler { background: #1A1118; }   /* galería direction tweak */

/* ── DARK NAV ────────────────────────────────────────── */
.nav--dark {
  background: rgba(31, 20, 16, 0.72);
  border-bottom: 1px solid var(--bio-line);
}
.nav--dark .nav-brand b { color: var(--paper); }
.nav--dark .nav-links a { color: var(--paper); }
.nav--dark .nav-links a:hover,
.nav--dark .nav-links a.active { color: var(--bio-accent); border-bottom-color: var(--bio-accent); }
.nav--dark .lang-btn { color: var(--paper); border-color: var(--bio-line-strong); }
.nav--dark .lang-btn:hover { background: var(--paper); color: var(--cacao); }
.nav--dark .btn-ghost { color: var(--paper); border-color: var(--bio-line-strong); }
.nav--dark .btn-ghost:hover { background: var(--paper); color: var(--cacao); }

/* WordPress single-artist uses the shared header — mirror the dark nav onto
   body.bio so the nav reads correctly over the cacao background. */
body.bio .nav { background: rgba(31, 20, 16, 0.72); border-bottom: 1px solid var(--bio-line); }
body.bio .nav .nav-brand b { color: var(--paper); }
body.bio .nav .nav-links a { color: var(--paper); }
body.bio .nav .nav-links a:hover,
body.bio .nav .nav-links a.current-menu-item,
body.bio .nav .nav-links a.active { color: var(--bio-accent); }
body.bio .nav .lang-btn { color: var(--paper); border-color: var(--bio-line-strong); }
body.bio .nav .lang-btn:hover { background: var(--paper); color: var(--cacao); }
body.bio .nav .btn-ghost { color: var(--paper); border-color: var(--bio-line-strong); }
body.bio .nav .btn-ghost:hover { background: var(--paper); color: var(--cacao); }
body.bio .nav .btn-secondary { background: var(--bio-accent); color: var(--cacao); }
body.bio .nav .btn-secondary:hover { background: var(--bio-accent-deep); color: var(--cacao); }

/* ── PLACEHOLDER FRAMES (drop real media here) ───────── */
.ph {
  position: relative;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(247,239,226,0.05) 0 12px, rgba(247,239,226,0.02) 12px 24px),
    var(--bio-surface);
  border: 1px solid var(--bio-line);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--bio-ink-mute);
  background: rgba(31,20,16,0.55);
  padding: 4px 9px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.ph i {
  position: absolute; inset: 0; margin: auto;
  width: 1em; height: 1em; font-size: 34px; color: var(--bio-ink-mute);
  display: grid; place-items: center;
}
/* a colored, artwork-like fill variant — still clearly a slot via the label */
.ph--art { background: var(--art-fill, var(--bio-surface)); }
.ph--art::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(31,20,16,0.10) 0 14px, transparent 14px 28px);
}

/* ── HERO (portrait left, text right — layout 0) ─────── */
.bio-hero { padding: 56px 0 40px; }
.bio-hero-grid { display: grid; grid-template-columns: 0.86fr 1fr; gap: 64px; align-items: center; }
.bio-portrait { aspect-ratio: 4 / 5; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.bio-hero .eyebrow { color: var(--bio-accent); margin: 0 0 18px; }
.bio-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(46px, 5.4vw, 84px); line-height: 0.95; letter-spacing: -0.03em;
  color: var(--bio-ink); margin: 0; text-wrap: balance;
}
.bio-tagline { font-family: var(--font-hand); font-size: 34px; color: var(--bio-accent); margin: 10px 0 0; line-height: 1; }
.bio-intro { font-size: 19px; line-height: 1.6; color: var(--bio-ink-soft); margin: 26px 0 0; max-width: 520px; }

/* medium / technique tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 0; }
.tag {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--bio-ink-soft); padding: 7px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--bio-line-strong); background: rgba(247,239,226,0.03);
  white-space: nowrap;
}

/* hero actions + social */
.bio-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 32px 0 0; }
.btn-accent { background: var(--bio-accent); color: var(--cacao); }
.btn-accent:hover { background: var(--bio-accent-deep); color: var(--cacao); }
.social-row { display: flex; gap: 8px; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--bio-ink-soft);
  border: 1px solid var(--bio-line-strong); text-decoration: none;
  transition: color var(--dur-micro) var(--ease-decolores), border-color var(--dur-micro) var(--ease-decolores), background var(--dur-micro) var(--ease-decolores);
}
.social-link:hover { color: var(--cacao); background: var(--bio-accent); border-color: var(--bio-accent); text-decoration: none; }
.social-link i { font-size: 20px; }

/* ── DARK SECTION SCAFFOLD ───────────────────────────── */
.bio-section { padding: 56px 0; border-top: 1px solid var(--bio-line); }
.bio-section.no-rule { border-top: none; }
.bio-kicker {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bio-accent);
  margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.bio-kicker::after { content: ""; flex: 1; height: 1px; background: var(--bio-line); }
.bio-h2 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.02em; color: var(--bio-ink); margin: 0; }

/* ── STATEMENT ───────────────────────────────────────── */
.statement { display: grid; grid-template-columns: 0.5fr 1fr; gap: 56px; align-items: start; }
.statement-body p { font-size: 18px; line-height: 1.78; color: var(--bio-ink-soft); margin: 0 0 20px; }
.statement-body p:last-child { margin-bottom: 0; }
.statement-body strong { color: var(--bio-ink); font-weight: 600; }
.statement-quote {
  font-family: var(--font-display); font-size: 27px; line-height: 1.32; font-weight: 500;
  color: var(--bio-ink); border-left: 2px solid var(--bio-accent); padding-left: 22px;
  margin: 0; text-wrap: balance;
}
.statement-quote .by { display: block; font-family: var(--font-hand); font-size: 26px; color: var(--bio-accent); margin-top: 14px; }

/* ── SELECTED WORKS (gallery layout 0: feature + grid) ── */
.works-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  aspect-ratio: 16 / 9;
}
.work { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.work:nth-child(1) { grid-row: span 2; }
.work .art { height: 100%; width: 100%; border-radius: 0; box-shadow: none; }
.work img { height: 100%; width: 100%; object-fit: cover; display: block; }
.work-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px;
  background: linear-gradient(to top, rgba(20,12,9,0.86), rgba(20,12,9,0.2) 60%, transparent);
}
.bio[data-direction="galeria"] .work-cap { background: linear-gradient(to top, rgba(20,12,9,0.7), transparent); }
.work-cap b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--paper); }
.work-cap span { font-size: 12px; color: rgba(247,239,226,0.7); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ── VIDEO ───────────────────────────────────────────── */
.video-wrap { max-width: 920px; margin: 0 auto; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); }
.video-embed .play {
  position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--bio-accent); color: var(--cacao);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 40px -8px rgba(0,0,0,0.5);
  transition: transform var(--dur-micro) var(--ease-decolores);
}
.video-embed .play:hover { transform: scale(1.08); }
.video-embed .play i { font-size: 32px; margin-left: 4px; }
.video-cap { text-align: center; font-size: 14px; color: var(--bio-ink-mute); margin: 18px 0 0; }
.video-embed-live { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.video-embed-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── COMMISSION / WHERE TO BUY ───────────────────────── */
.commission { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.comm-card {
  background: var(--bio-surface); border: 1px solid var(--bio-line);
  border-radius: var(--r-xl); padding: 34px 32px;
  display: flex; flex-direction: column; gap: 10px;
}
.comm-card .comm-ico { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(247,239,226,0.06); color: var(--bio-accent); margin-bottom: 6px; }
.comm-card .comm-ico i { font-size: 24px; }
.comm-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--bio-ink); margin: 0; letter-spacing: -0.01em; }
.comm-card p { font-size: 15px; line-height: 1.62; color: var(--bio-ink-soft); margin: 0; }
.comm-card .comm-link { margin-top: auto; padding-top: 14px; font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--bio-accent); display: inline-flex; align-items: center; gap: 8px; }
.comm-card .comm-link i { transition: transform var(--dur-micro) var(--ease-decolores); }
.comm-card a.comm-link:hover { text-decoration: none; }
.comm-card a.comm-link:hover i { transform: translateX(4px); }

/* full-width closing CTA */
.bio-cta {
  background: var(--bio-surface); border: 1px solid var(--bio-line);
  border-radius: var(--r-2xl); padding: 56px 48px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.bio-cta img.flourish { width: 38px; height: 38px; opacity: 0.9; }
.bio-cta h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.025em; color: var(--bio-ink); margin: 0; text-wrap: balance; }
.bio-cta p { font-size: 17px; color: var(--bio-ink-soft); margin: 0; max-width: 460px; }

/* ── DIRECTION: papel picado top accent (fiesta) ─────── */
.bio .bio-papel { display: none; height: 56px; background-image: url('assets/patterns/papel-picado.svg'); background-repeat: repeat-x; background-size: 180px 56px; }
.bio[data-direction="fiesta"] .bio-papel { display: block; }
.bio[data-direction="fiesta"] .tag { background: rgba(247,239,226,0.05); }
.bio[data-direction="fiesta"] .bio-kicker::after { background: linear-gradient(to right, var(--bio-line), transparent); }

/* ── DIRECTION: galería (image-forward, quieter type) ── */
.bio[data-direction="galeria"] .bio-tagline { display: none; }
.bio[data-direction="galeria"] .bio-kicker { letter-spacing: 0.24em; color: var(--bio-ink-mute); }
.bio[data-direction="galeria"] .bio-kicker::after { display: none; }
.bio[data-direction="galeria"] .bio-name { font-weight: 500; letter-spacing: -0.02em; }
.bio[data-direction="galeria"] .works-mosaic { aspect-ratio: 2 / 1; gap: 10px; }
.bio[data-direction="galeria"] .statement-quote { border-left: none; padding-left: 0; font-size: 32px; text-align: center; }

/* ── DIRECTION: editorial = default; subtle refinement ── */
.bio[data-direction="editorial"] .bio-section { padding: 64px 0; }

/* =========================================================================
   GALLERY INDEX (light) — feeds from each artist's selected works
   ========================================================================= */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 36px; }
.filter-chip {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border-strong); background: var(--paper);
  color: var(--cacao); cursor: pointer; text-decoration: none;
  transition: background var(--dur-micro) var(--ease-decolores), color var(--dur-micro) var(--ease-decolores), border-color var(--dur-micro) var(--ease-decolores);
}
.filter-chip:hover { border-color: var(--terracotta); text-decoration: none; }
.filter-chip.active { background: var(--cacao); color: var(--paper); border-color: var(--cacao); }

.gallery-grid { columns: 3; column-gap: 20px; }
.gallery-item {
  break-inside: avoid; margin: 0 0 20px; border-radius: var(--r-lg);
  overflow: hidden; position: relative; display: block; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-decolores), box-shadow var(--dur-base) var(--ease-decolores);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.gallery-item .frame { width: 100%; display: block; }
.gallery-item .frame img { width: 100%; height: auto; display: block; }
.gallery-item .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 18px 16px; color: var(--paper);
  background: linear-gradient(to top, rgba(20,12,9,0.86), transparent);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-decolores);
}
.gallery-item:hover .meta { opacity: 1; }
.gallery-item .meta b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.gallery-item .meta .artist { font-size: 13px; color: var(--marigold); font-family: var(--font-body); font-weight: 600; }
.gallery-item .meta .medium { font-size: 12px; color: rgba(247,239,226,0.78); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* =========================================================================
   MEMBERS / ARTIST DIRECTORY (light) — grid of all guild artists
   ========================================================================= */
.artist-dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.artist-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-decolores), box-shadow var(--dur-base) var(--ease-decolores);
}
.artist-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.artist-card .portrait { aspect-ratio: 4 / 5; width: 100%; }
.artist-card .portrait.art { border-radius: 0; box-shadow: none; }
.artist-card .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artist-card .ac-body { padding: 20px 22px 24px; }
.artist-card .ac-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--cacao); margin: 0 0 4px; }
.artist-card .ac-tag { font-family: var(--font-hand); font-size: 22px; color: var(--terracotta); margin: 0 0 12px; line-height: 1; }
.artist-card .ac-mediums { display: flex; flex-wrap: wrap; gap: 6px; }
.artist-card .ac-medium { font-size: 12px; font-weight: 600; color: var(--cacao-soft); border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 4px 11px; }
.artist-card .ac-view { margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--terracotta); display: inline-flex; align-items: center; gap: 7px; }
.artist-card:hover .ac-view i { transform: translateX(4px); }
.artist-card .ac-view i { transition: transform var(--dur-micro) var(--ease-decolores); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .bio-hero-grid, .statement, .commission { grid-template-columns: 1fr; gap: 32px; }
  .artist-dir { grid-template-columns: 1fr 1fr; gap: 20px; }
  .works-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .works-mosaic .work { aspect-ratio: 1 / 1; }
  .works-mosaic .work:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 10; grid-row: auto; }
  .bio-name { font-size: 52px; }
  .gallery-grid { columns: 2; }
  .bio-cta { padding: 36px 24px; }
}
@media (max-width: 560px) {
  .gallery-grid { columns: 1; }
  .artist-dir { grid-template-columns: 1fr; }
  .works-mosaic { grid-template-columns: 1fr; }
  .works-mosaic .work:nth-child(1) { grid-column: span 1; }
}
