/* ------------------------------------------
   STYLES.CSS — ESPECIES(/)
   ------------------------------------------*/

/* TOKENS */
:root {
  --deep:    #0D2B4E;
  --mid:     #1A6B8A;
  --turq:    #00B4D8;
  --turq-lt: #48CAE4;
  --white:   #FFFFFF;
  --radius:  14px;
  --display: 'Playfair Display', Georgia, serif;
  --body:    'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body); font-size: 17px; color: var(--white);
  background: linear-gradient(180deg,
    #0D2B4E 0%, #0F3560 8%, #1A6B8A 18%, #0D7FA0 30%,
    #0B6E8C 42%, #0A5C78 54%, #093D58 66%,
    #0A4D6A 78%, #0C3A58 90%, #0D2B4E 100%);
  min-height: 100vh;
}


/* INTRO */
.intro-section { padding: 5rem 2rem 3rem; }
.section-inner { max-width: 920px; margin: 0 auto; }
.intro-section p {
  font-size: 1.05rem; line-height: 1.85;
  color: rgba(255,255,255,.82); margin-bottom: 1.1rem;
}
.intro-section p:last-child { margin-bottom: 0; }

/* SPECIES GRID */
.species-section { padding: 2rem 2rem 5rem; }
.species-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
  gap: 1.5rem;
}
.species-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--white);
  transition: transform .2s, background .2s, border-color .2s;
}
.species-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.1);
  border-color: rgba(72,202,228,.3);
}
.species-img {
  height: 200px; background-size: cover; background-position: center;
  background-color: rgba(26,107,138,.4);
}
.species-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.species-scientific {
  font-size: .75rem; font-style: italic;
  color: var(--turq-lt); font-weight: 400;
}
.species-body h2 {
  font-family: var(--display); font-size: 1.4rem;
  font-weight: 700; color: var(--white); line-height: 1.2;
}
.species-body p {
  font-size: .92rem; line-height: 1.65;
  color: rgba(255,255,255,.72); flex: 1;
}
.species-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .25rem; }
.tag {
  font-size: .68rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: 50px; background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.1);
}
.tag-status { border: none; }
.tag-status.danger   { background: rgba(200,80,60,.25);  color: #ffb3a7; }
.tag-status.critical { background: rgba(180,40,40,.3);   color: #ffaaaa; }
.tag-status.vulnerable { background: rgba(200,150,30,.25); color: #ffe0a0; }
.tag-status.lc       { background: rgba(50,160,100,.2);  color: #a0e4c0; }
.species-link {
  font-size: .85rem; font-weight: 600; color: var(--turq-lt);
  margin-top: auto; padding-top: .5rem;
}

@media (max-width: 640px) {
  .species-section { padding: 1.5rem 1.25rem 4rem; }
  .intro-section { padding: 4rem 1.25rem 2rem; }
}