/* ============================================================
   SECTION-CARDS.CSS — content cards inside section panels
   ============================================================ */

/* ── base card ─────────────────────────────────────────────────────────── */

.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  /* Shadow primarily to the right, giving a "pinned to panel" feel */
  box-shadow: 8px 4px 28px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  flex-shrink: 0;
}

/* ── card content area ── */

.card__content {
  padding: 1.25rem 1.5rem;
}

.card__title {
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  color: var(--color-fg);
  line-height: 1.3;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.5;
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.card__description {
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.card__description p { margin: 0 0 0.55rem; }
.card__description p:last-child { margin-bottom: 0; }

.card__description a {
  color: inherit;
  opacity: 0.9;
  text-underline-offset: 2px;
}

/* ── embed (Bandcamp / RNZ) ── */

.card__embed {
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
}

.card__embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ── video (16:9 ratio) ── */

.card__video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.card__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── art: standalone image ── */

.card__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 200ms;
}

.card--image .card__image:hover {
  opacity: 0.9;
}

/* ── art: collection card ── */

.card--collection .card__image {
  aspect-ratio: var(--hero-aspect);
  object-fit: cover;
}

/* Expand / collapse button */
.card__expand-btn {
  all: unset;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 150ms;
}

.card__expand-btn:hover {
  opacity: 0.9;
}

/* Horizontal image strip (hidden by default, toggled by JS) */
.card__gallery {
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0.5rem;
  padding: 0 1.5rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.card__gallery.is-open {
  display: flex;
}

.card__gallery::-webkit-scrollbar { height: 3px; }
.card__gallery::-webkit-scrollbar-track { background: transparent; }
.card__gallery::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.card__gallery img {
  height: 200px;
  width: auto;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 200ms;
}

.card__gallery img:hover { opacity: 0.85; }

/* ── album card (hero image + tracklist) ── */

.card--album .card__album-cover {
  display: block;
  width: 100%;
  aspect-ratio: var(--hero-aspect);
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 180ms;
}

.card--album .card__album-cover:hover {
  opacity: 0.88;
}

.card__tracklist {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem 1.25rem;
}

.card__track-row {
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-rows: auto auto;
  align-items: baseline;
  gap: 0 0.5rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--color-border);
}

.card__track-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.4;
  letter-spacing: 0.05em;
  padding-top: 0.1rem;
}

.card__track-name {
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* ── custom audio player ── */

.card__player {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.card__play-btn {
  all: unset;
  font-size: 0.6rem;
  opacity: 0.55;
  cursor: pointer;
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
  transition: opacity 150ms;
}

.card__play-btn:hover { opacity: 1; }

.card__scrubber {
  flex: 1;
  height: 2px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: var(--color-border);
  border-radius: 1px;
  outline: none;
}

.card__scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.card__scrubber::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
}

.card__time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  opacity: 0.4;
  flex-shrink: 0;
  min-width: 2.5rem;
  text-align: right;
}

/* ── hero image (text-only project cards) ── */

.card__hero {
  display: block;
  width: 100%;
  aspect-ratio: var(--hero-aspect);
  object-fit: cover;
  object-position: center top;
}

/* ── full-display hero: always shows complete image, padded + rounded ── */

.card__hero--full {
  display: block;
  width: calc(100% - 3rem);
  margin: 1.25rem auto 0;
  height: auto;
  border-radius: 10px;
}

/* ── logo image inside description ── */

.card__description-logo {
  display: block;
  height: 4rem;
  width: auto;
  max-width: 100%;
  opacity: 0.75;
  margin-bottom: 1rem;
}

/* ── full-width photo at bottom of card (direct child, full opacity) ── */

.card__description-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ── social / external links ── */

.card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.card__link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.45;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 150ms;
}

.card__link::before {
  content: '↗ ';
  opacity: 0.6;
}

/* Icon links — suppress the arrow, show the SVG instead */
.card__link--instagram::before {
  content: '';
}

.card__link-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.3em;
  margin-bottom: 0.1em;
}

.card__link:hover {
  opacity: 1;
}

/* ── panel scrollbar ── */

.section {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.section::-webkit-scrollbar { width: 3px; }
.section::-webkit-scrollbar-track { background: transparent; }
.section::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}
