/* ─── VARIABLES & RESET ─────────────────────────────────────────────────────── */
:root {
  --bg: #fff8f5;
  --surface: #ffffff;
  --surface2: #fff0f7;
  --surface3: #fffde7;
  --accent: #ff9eb5;
  --accent2: #ffd54f;
  --accent3: #f48fb1;
  --accent4: #b2dfdb;
  --text: #4a2c3a;
  --text-muted: #b07a90;
  --legendary: #f7a800;
  --ultra-rare: #d084c8;
  --rare: #6ab0f5;
  --uncommon: #6dcc8a;
  --common: #b0bec5;
  --radius: 20px;
  --shadow: 0 4px 20px rgba(244,143,177,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── FLOWER DECORATIONS ─────────────────────────────────────────────────────── */
.flowers-left,
.flowers-right {
  position: fixed;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.6rem;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.flowers-left  { left: 10px; }
.flowers-right { right: 10px; }

.flowers-left span,
.flowers-right span {
  display: block;
  animation: sway 3s ease-in-out infinite alternate;
}

.flowers-left span:nth-child(2n)  { animation-delay: 0.5s; }
.flowers-left span:nth-child(3n)  { animation-delay: 1s; }
.flowers-right span:nth-child(2n) { animation-delay: 0.7s; }
.flowers-right span:nth-child(3n) { animation-delay: 1.3s; }

@keyframes sway {
  from { transform: rotate(-8deg) scale(0.95); }
  to   { transform: rotate(8deg)  scale(1.05); }
}

@media (max-width: 900px) {
  .flowers-left, .flowers-right { display: none; }
}

/* ─── HEADER ─────────────────────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(244,143,177,0.12);
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 3px solid var(--accent);
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent3);
  letter-spacing: -0.5px;
}

nav { display: flex; flex-wrap: wrap; gap: 4px; }

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s;
}

nav a:hover { color: var(--accent3); }

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px 24px 52px;
  background: linear-gradient(160deg, #fff0f7 0%, #fffde7 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "🌸";
  position: absolute;
  font-size: 8rem;
  opacity: 0.08;
  top: -10px;
  left: -20px;
  pointer-events: none;
}

.hero::after {
  content: "🌼";
  position: absolute;
  font-size: 8rem;
  opacity: 0.08;
  bottom: -10px;
  right: -20px;
  pointer-events: none;
}

.hero-axolotl {
  margin: 0 auto 24px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 32px rgba(244,143,177,0.25);
  overflow: hidden;
  display: none;
}

.hero-axolotl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f48fb1, #ffa726);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  font-weight: 600;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: white;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(244,143,177,0.35);
  font-family: 'Nunito', sans-serif;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,143,177,0.45); }
.btn:active { transform: translateY(0); }

.btn.secondary {
  background: white;
  color: var(--accent3);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(244,143,177,0.15);
}

.btn.small { padding: 8px 16px; font-size: 0.82rem; }

/* ─── SECTIONS ───────────────────────────────────────────────────────────────── */
.section { max-width: 960px; margin: 0 auto; padding: 52px 24px; position: relative; z-index: 1; }
.section h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; color: var(--text); }
.subtitle { color: var(--text-muted); margin-bottom: 28px; font-weight: 600; }

.values-section,
.items-section,
.eggs-section {
  background: white;
  border-radius: 28px;
  margin: 0 auto 32px;
  box-shadow: var(--shadow);
  border: 2px solid #fce4ec;
}

.fuse-section  { background: linear-gradient(135deg, #fff0f7, #fffde7); border-radius: 28px; margin-bottom: 32px; box-shadow: var(--shadow); }
.trade-section { background: linear-gradient(135deg, #fffde7, #fff0f7); border-radius: 28px; margin-bottom: 32px; box-shadow: var(--shadow); }

/* ─── SEARCH & FILTERS ───────────────────────────────────────────────────────── */
.search-bar { margin-bottom: 16px; }

.search-bar input {
  width: 100%;
  max-width: 420px;
  background: var(--surface2);
  border: 2px solid var(--accent);
  border-radius: 50px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
}

.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { outline: none; border-color: var(--accent3); box-shadow: 0 0 0 3px rgba(244,143,177,0.15); }

.tier-filter, .items-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.tier-btn {
  padding: 6px 18px;
  border-radius: 50px;
  border: 2px solid #fce4ec;
  background: white;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
}

.tier-btn.active  { background: var(--accent); color: white; border-color: var(--accent); }
.tier-btn:hover   { border-color: var(--accent); color: var(--accent3); }
.tier-btn.legendary.active,  .tier-btn.legendary:hover  { background: var(--legendary);  border-color: var(--legendary);  color: white; }
.tier-btn.ultra-rare.active, .tier-btn.ultra-rare:hover { background: var(--ultra-rare); border-color: var(--ultra-rare); color: white; }
.tier-btn.rare.active,       .tier-btn.rare:hover       { background: var(--rare);       border-color: var(--rare);       color: white; }
.tier-btn.uncommon.active,   .tier-btn.uncommon:hover   { background: var(--uncommon);   border-color: var(--uncommon);   color: white; }
.tier-btn.common.active,     .tier-btn.common:hover     { background: var(--common);     border-color: var(--common);     color: white; }

/* ─── PET CARDS ──────────────────────────────────────────────────────────────── */
.pet-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.pet-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  border-left: 5px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid #fce4ec;
}

.pet-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(244,143,177,0.2); }
.pet-card.legendary  { border-left: 5px solid var(--legendary);  border-color: #ffe0b2; }
.pet-card.ultra-rare { border-left: 5px solid var(--ultra-rare); border-color: #f3e5f5; }
.pet-card.rare       { border-left: 5px solid var(--rare);       border-color: #e3f2fd; }
.pet-card.uncommon   { border-left: 5px solid var(--uncommon);   border-color: #e8f5e9; }
.pet-card.common     { border-left: 5px solid var(--common);     border-color: #fce4ec; }

.pet-img-placeholder {
  font-size: 2rem;
  width: 62px;
  height: 62px;
  min-width: 62px;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #fce4ec;
  box-shadow: 0 2px 8px rgba(244,143,177,0.1);
}

.pet-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.pet-img-placeholder .emoji-fallback {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-info { flex: 1; min-width: 0; }
.pet-name { font-weight: 800; font-size: 0.95rem; color: var(--text); }

.pet-rarity {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.pet-rarity.legendary  { color: var(--legendary); }
.pet-rarity.ultra-rare { color: var(--ultra-rare); }
.pet-rarity.rare       { color: var(--rare); }
.pet-rarity.uncommon   { color: var(--uncommon); }
.pet-rarity.common     { color: var(--common); }

.pet-source { font-size: 0.71rem; color: var(--text-muted); line-height: 1.4; margin-top: 2px; font-weight: 600; }
.item-desc  { font-size: 0.75rem; color: var(--text-muted); font-style: italic; margin-top: 4px; }

.pet-value { font-weight: 900; font-size: 1.05rem; color: var(--accent3); white-space: nowrap; text-align: right; min-width: 44px; }
.pet-value span { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; display: block; }
.no-results { color: var(--text-muted); text-align: center; padding: 40px; grid-column: 1/-1; font-weight: 700; }

/* ─── EGGS ───────────────────────────────────────────────────────────────────── */
.egg-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.egg-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid #fce4ec;
  transition: transform 0.15s, box-shadow 0.15s;
}

.egg-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(244,143,177,0.15); }

.egg-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.egg-icon { font-size: 2.5rem; }
.egg-name { font-weight: 900; font-size: 1rem; color: var(--text); }
.egg-cost { font-size: 0.85rem; font-weight: 700; }
.egg-status { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-top: 2px; }
.egg-status.available { color: var(--uncommon); }
.egg-status.retired   { color: var(--accent3); }
.egg-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }
.egg-pets-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.5px; }
.egg-pets { display: flex; flex-wrap: wrap; gap: 6px; }

.egg-pet-chip {
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 50px;
  background: white;
  font-weight: 700;
  border: 2px solid #fce4ec;
}

.egg-pet-chip.legendary  { border-color: var(--legendary);  color: var(--legendary); }
.egg-pet-chip.ultra-rare { border-color: var(--ultra-rare); color: var(--ultra-rare); }
.egg-pet-chip.rare       { border-color: var(--rare);       color: var(--rare); }
.egg-pet-chip.uncommon   { border-color: var(--uncommon);   color: var(--uncommon); }
.egg-pet-chip.common     { border-color: var(--common);     color: var(--common); }

/* ─── FUSE LAB ───────────────────────────────────────────────────────────────── */
.fuse-section { text-align: center; }

.fuse-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.fuse-slot { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.fuse-slot label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fuse-slot select {
  background: white;
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  width: 200px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.fuse-slot select:focus { outline: none; border-color: var(--accent3); }

.pet-icon {
  font-size: 2.5rem;
  background: white;
  border-radius: 50%;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(244,143,177,0.2);
}

.fuse-plus { font-size: 2rem; color: var(--accent3); font-weight: 900; padding-top: 28px; }
.fuse-btn  { margin-bottom: 28px; font-size: 1.1rem; padding: 14px 44px; }

.fuse-result {
  background: white;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  margin: 0 auto;
  animation: popIn 0.3s ease;
  box-shadow: 0 8px 32px rgba(244,143,177,0.2);
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.result-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 800; }
.fuse-name    { font-size: 1.8rem; font-weight: 900; color: var(--accent3); margin-bottom: 8px; }
.fuse-emoji   { font-size: 3.5rem; margin-bottom: 12px; }
.fuse-desc    { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; font-style: italic; font-weight: 600; }
.hidden       { display: none !important; }

/* ─── NEON EXPLAINER ─────────────────────────────────────────────────────────── */
.neon-explainer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}

.neon-badge {
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.88rem;
}

.normal-badge    { background: white;   border: 2px solid #fce4ec;           color: var(--text-muted); }
.ride-badge      { background: #e8f5e9; border: 2px solid #81c784;           color: #388e3c; }
.fly-badge       { background: #e3f2fd; border: 2px solid #64b5f6;           color: #1565c0; }
.fr-badge        { background: #f3e5f5; border: 2px solid #ba68c8;           color: #6a1b9a; }
.neon-badge-glow { background: #fce4ec; border: 2px solid var(--accent3);    color: var(--accent3); }
.mega-badge      { background: #fff8e1; border: 2px solid var(--legendary);  color: var(--legendary); }

/* ─── TRADE CALCULATOR ───────────────────────────────────────────────────────── */
.trade-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.trade-side {
  flex: 1;
  min-width: 240px;
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid #fce4ec;
  box-shadow: 0 2px 12px rgba(244,143,177,0.08);
}

.trade-side h3 { margin-bottom: 16px; font-size: 1.05rem; font-weight: 800; }

.trade-add { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.trade-add select {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.trade-list { list-style: none; min-height: 40px; margin-bottom: 12px; }

.trade-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: 50px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid #fce4ec;
}

.trade-list li .item-val { margin-left: auto; color: var(--accent3); font-weight: 800; font-size: 0.8rem; }
.trade-list li button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; transition: color 0.2s; padding: 0 2px; }
.trade-list li button:hover { color: var(--accent3); }

.trade-total { font-weight: 800; font-size: 0.95rem; color: var(--text-muted); text-align: right; }
.trade-total span { color: var(--accent3); font-size: 1.1rem; }

.trade-vs { font-size: 1.4rem; font-weight: 900; color: var(--accent); align-self: center; padding-top: 20px; }

.verdict {
  text-align: center;
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
  animation: popIn 0.3s ease;
}

.verdict.win  { background: #e8f5e9; color: #388e3c; border: 2px solid #a5d6a7; }
.verdict.lose { background: #fce4ec; color: var(--accent3); border: 2px solid var(--accent); }
.verdict.fair { background: #fff8e1; color: #f9a825; border: 2px solid #ffe082; }

/* ─── DONATE ─────────────────────────────────────────────────────────────────── */
.donate-section {
  text-align: center;
  padding: 60px 24px 50px;
  background: var(--surface2);
}

.donate-section h2 { margin-bottom: 8px; }
.donate-section .subtitle { margin-bottom: 28px; }

.kofi-btn {
  display: inline-block;
  transition: transform 0.2s;
}
.kofi-btn:hover { transform: scale(1.05); }
.kofi-btn img { border-radius: 8px; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 2px solid #fce4ec;
  font-weight: 600;
  background: white;
}

footer p + p { margin-top: 4px; }

/* ─── MOBILE ─────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav a { margin-left: 10px; font-size: 0.78rem; }
  .fuse-slot select { width: 150px; }
  .fuse-plus { padding-top: 18px; }
  .trade-vs { width: 100%; text-align: center; padding: 0; }
  .pet-list, .egg-list { grid-template-columns: 1fr; }
}
