/* ──────────────────────────────────────────────
   pynenc.org  —  custom styles
   ────────────────────────────────────────────── */

/* ── Navbar brand mushroom (appears on scroll) ─ */
.brand-shroom {
  display: inline-block;
  vertical-align: middle;
  height: 1.6rem;
  width: 1.6rem;
  object-fit: contain;
  max-width: 0;
  opacity: 0;
  margin-right: 0;
  overflow: hidden;
  transition: max-width 0.4s ease, opacity 0.4s ease, margin-right 0.4s ease;
}
.brand-shroom.visible {
  max-width: 1.6rem;
  opacity: 1;
  margin-right: 0.35rem;
}

/* ── Inline mushroom logos ──────────────────── */

/* Tiny mushroom used as a sentence-ending dot */
img.shroom-dot {
  display: inline-block;
  height: 0.9em;
  width: 0.9em;
  vertical-align: baseline;
  margin-left: 0.05em;
  transition: transform 0.3s ease;
}
img.shroom-dot:hover {
  transform: rotate(20deg) scale(1.3);
}

/* Small mushroom floating beside text */
img.shroom-sm {
  display: inline-block;
  height: 1.6em;
  vertical-align: middle;
  margin: 0 0.3em;
  transition: transform 0.3s ease;
}
img.shroom-sm:hover {
  transform: rotate(-15deg) scale(1.2);
}

/* Medium decorative mushroom — floated beside a section */
img.shroom-float-right {
  float: right;
  width: 3.5rem;
  margin: 0 0 0.5rem 1rem;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
img.shroom-float-right:hover {
  opacity: 1;
  transform: rotate(12deg) scale(1.15);
}
img.shroom-float-left {
  float: left;
  width: 3.5rem;
  margin: 0 1rem 0.5rem 0;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
img.shroom-float-left:hover {
  opacity: 1;
  transform: rotate(-12deg) scale(1.15);
}

/* Larger decorative mushroom used as section accent */
img.shroom-accent {
  display: block;
  margin: 1.5rem auto;
  width: 2.8rem;
  opacity: 0.7;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
img.shroom-accent:hover {
  opacity: 1;
  transform: scale(1.3) rotate(360deg);
}

/* ── Open-source callout box ────────────────── */
.oss-callout {
  background: linear-gradient(135deg, #f0fdf0 0%, #e8f5e9 100%);
  border-left: 4px solid #43a047;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.oss-callout strong {
  color: #2e7d32; /* keep green for OSS/MIT callout */
}

/* ── Feature grid  ──────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.feature-card {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.feature-card h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}
.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* ── Badge row ──────────────────────────────── */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.badges img {
  height: 20px;
}

/* ── Disclaimer / fun-note box ───────────────── */
.disclaimer-box {
  background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
  border-left: 4px solid #f9a825;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}
.disclaimer-box strong {
  color: #e65100;
}
.disclaimer-box em {
  font-style: normal;
  font-weight: 700;
  color: #2e7d32;
}
.disclaimer-box code {
  background: rgba(0,0,0,0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}

/* ── Architecture SVG diagram ───────────────── */
.architecture-diagram svg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

/* ── Soft horizontal rule alternative ───────── */
.shroom-divider {
  text-align: center;
  margin: 2rem 0;
  line-height: 0;
}
.shroom-divider img {
  height: 1.8rem;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.shroom-divider img:hover {
  opacity: 1;
  transform: rotate(360deg);
}
