/* ============================================================
   VIVARIUM CULEBRA — ANIMAL PAGES STYLESHEET
   ============================================================ */

/* ── PAGE HERO (compact) ────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  background: #080808;
}
.page-hero-bg {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1)   translate(0, 0);      filter: saturate(0.6) brightness(0.9); }
  50%  { transform: scale(1.08) translate(-1%, -0.5%); filter: saturate(0.8) brightness(1); }
  100% { transform: scale(1.04) translate(0.5%, 1%);  filter: saturate(0.7) brightness(0.95); }
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #080808 25%, rgba(8,8,8,0.55) 65%, transparent 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.page-hero-content .breadcrumb {
  animation: heroFadeUp 0.8s ease-out 0.2s both;
}
.page-hero-content .eyebrow,
.page-hero-content .taxon-label {
  animation: heroFadeUp 0.8s ease-out 0.4s both;
}
.page-hero-content h1 {
  animation: heroFadeUp 1s ease-out 0.6s both;
}
.page-hero-content > p {
  animation: heroFadeUp 0.9s ease-out 0.9s both;
}
@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(30px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #c9a84c; }
.breadcrumb .sep { color: rgba(255,255,255,0.18); }

/* ── TAXON LABEL ────────────────────────────────────────────── */
.taxon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.22);
  color: rgba(201,168,76,0.82);
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

/* ── SECTION WRAPPER ────────────────────────────────────────── */
.page-section {
  padding: 5rem 2rem;
}
.page-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-section-alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── PROFILE GRID (10 slots) ────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
@media (max-width: 1100px) { .profile-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .profile-grid { grid-template-columns: repeat(2, 1fr); } }

.profile-card {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.profile-card:hover {
  border-color: rgba(201,168,76,0.38);
  background: rgba(201,168,76,0.04);
  transform: translateY(-5px);
}
.profile-photo {
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.profile-placeholder-ring {
  width: 50px;
  height: 50px;
  border: 1.5px dashed rgba(255,255,255,0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.14);
}
.profile-placeholder span {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}
.profile-info {
  padding: 0.9rem 1rem 1.1rem;
}
.profile-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.68rem;
  color: rgba(201,168,76,0.48);
  letter-spacing: 0.08em;
  margin-bottom: 0.28rem;
}
.profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.2rem;
}
.profile-species {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  font-style: italic;
  color: rgba(255,255,255,0.28);
}

/* ── SUBCATEGORY CARDS (Squamata page) ─────────────────────── */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 700px) { .subcat-grid { grid-template-columns: 1fr; } }

.subcat-card {
  display: block;
  text-decoration: none;
  position: relative;
  min-height: 320px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.3s, transform 0.3s;
}
.subcat-card:hover { border-color: rgba(201,168,76,0.42); transform: translateY(-6px); }
.subcat-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: opacity 0.4s;
}
.subcat-card:hover .subcat-card-bg { opacity: 0.46; }
.subcat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.92) 35%, transparent 100%);
}
.subcat-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.25rem;
  z-index: 1;
}
.subcat-card-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.55rem;
  margin-top: 0.5rem;
}
.subcat-card-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.subcat-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.78);
}

/* ── INDIVIDUAL ANIMAL HERO ─────────────────────────────────── */
.animal-profile-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 2rem 4.5rem;
  overflow: hidden;
  background: #080808;
}
.animal-profile-photo-bg {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.025);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.animal-profile-photo-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.38;
}
.photo-upload-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.photo-upload-hint .upload-ring {
  width: 80px; height: 80px;
  border: 1.5px dashed rgba(255,255,255,0.13);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.13);
}
.photo-upload-hint span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}
.animal-profile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #080808 22%, rgba(8,8,8,0.4) 65%, transparent 100%);
}
.animal-profile-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.animal-profile-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.animal-scientific-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0;
}

/* ── DETAIL STATS STRIP ─────────────────────────────────────── */
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 5rem;
}
@media (max-width: 768px) { .detail-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .detail-stats { grid-template-columns: 1fr; } }

.detail-stat {
  background: #080808;
  padding: 2rem 1.75rem;
}
.detail-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 0.55rem;
}
.detail-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
}
.detail-stat-value.empty {
  color: rgba(255,255,255,0.2);
  font-style: italic;
}

/* ── CONTENT LAYOUT ─────────────────────────────────────────── */
.profile-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 800px) { .profile-content-grid { grid-template-columns: 1fr; gap: 3rem; } }

.field-block { margin-bottom: 2.75rem; }
.field-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.65);
  margin-bottom: 0.75rem;
}
.field-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.58);
}
.field-body.empty {
  color: rgba(255,255,255,0.18);
  font-style: italic;
  border: 1px dashed rgba(255,255,255,0.07);
  padding: 1.25rem 1.5rem;
  border-radius: 3px;
}

/* ── FUN FACTS ──────────────────────────────────────────────── */
.facts-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
}
.fact-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(201,168,76,0.65);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}
.fact-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.22);
  font-style: italic;
}

/* ── PHOTO GALLERY SLOTS ────────────────────────────────────── */
.gallery-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
}
@media (max-width: 600px) { .gallery-slots { grid-template-columns: repeat(2, 1fr); } }

.gallery-slot {
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.025);
  border: 1px dashed rgba(255,255,255,0.09);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}
.gallery-slot:hover {
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.03);
}
.gallery-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-slot .slot-plus {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.13);
  line-height: 1;
}
.gallery-slot .slot-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

/* ── BACK LINK ──────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 1.75rem;
  display: block;
}
.back-link:hover { color: #c9a84c; }

/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero {
    min-height: 44vh;
    padding: 6rem 1.25rem 3rem;
    align-items: flex-end;
  }

  .page-hero-content h1 {
    font-size: clamp(2.6rem, 10vw, 4rem) !important;
  }

  .page-section {
    padding: 4rem 1.25rem;
  }

  .page-section-inner {
    padding: 0;
  }

  .detail-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .profile-content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Hide the placeholder monogram card on mobile — content first */
  .profile-content-grid > div:last-child > div[style*="aspect-ratio:3/4"] {
    display: none;
  }

  .field-block { margin-bottom: 1.5rem; }

  .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }

  .subcat-grid { grid-template-columns: 1fr; }

  .gallery-slots { grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }

  /* Inspirations on inner pages */
  .inspirations-grid { grid-template-columns: 1fr; }
}
