/**
 * creator.css — Immature Comics
 * Styles for node--creator.html.twig
 *
 * Place this file in your theme's CSS folder and attach via
 * your theme's THEME_NAME.libraries.yml
 *
 * All selectors are scoped to .node--creator to avoid bleed.
 */

/* ─────────────────────────────────────────────────────────────
   WRAPPER
───────────────────────────────────────────────────────────── */

.node--creator {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 2.5rem;
  row-gap: 2rem;
  grid-template-areas:
    "avatar   identity"
    "bio      bio"
    "meta     meta";
}

/* ─────────────────────────────────────────────────────────────
   AVATAR
───────────────────────────────────────────────────────────── */

.creator-avatar {
  grid-area: avatar;
}

.creator-avatar img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 10px;          /* Circle avatar — change to 8px for square */
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   IDENTITY BLOCK
───────────────────────────────────────────────────────────── */

.creator-identity {
  grid-area: identity;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.creator-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  line-height: 1.1;
}

.creator-pen-name,
.creator-nationality {
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

/* ─────────────────────────────────────────────────────────────
   SHARED LABEL STYLE
   Used on: pen name, nationality, website, member since
───────────────────────────────────────────────────────────── */

.creator-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
   STATUS BADGE
───────────────────────────────────────────────────────────── */

.creator-status {
  display: inline-block;
  margin-top: 0.5rem;
}

/* Drupal renders list field value inside a <div> — target the inner text */
.creator-status .field__item {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: #f0f0f0;
  color: #333;
}

/* Optional: colour-code by status value if you add data attributes later */

/* ─────────────────────────────────────────────────────────────
   BIO
───────────────────────────────────────────────────────────── */

.creator-bio {
  grid-area: bio;
  font-size: 1rem;
  line-height: 1.75;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.5rem;
}

.creator-bio p {
  margin: 0 0 1em 0;
}

.creator-bio p:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────
   META FOOTER (website + member since)
───────────────────────────────────────────────────────────── */

.creator-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.25rem;
  font-size: 0.9rem;
}

.creator-website,
.creator-member-since {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.creator-website a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.creator-website a:hover {
  opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — stack on mobile
───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .node--creator {
    grid-template-columns: 1fr;
    grid-template-areas:
      "avatar"
      "identity"
      "bio"
      "meta";
    padding: 2rem 1.25rem;
  }

  .creator-avatar {
    max-width: 140px;
    margin: 0 auto;
  }

  .creator-identity {
    text-align: center;
    align-items: center;
  }

  .creator-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}
