/* Pokémon Cards site — simple, welcoming, card-inspired */

:root {
  --bg-dark: #0f1419;
  --bg-card: #1a2332;
  --accent-yellow: #f5d042;
  --accent-blue: #4a90d9;
  --accent-red: #e3350d;
  --text: #e8e6e3;
  --text-muted: #9ca3af;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  font-family: "Fredoka", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-yellow);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent-yellow);
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74, 144, 217, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(245, 208, 66, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(227, 53, 13, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-sprites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-sprites img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.25s;
}

.hero-sprites img:hover {
  transform: scale(1.1);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-yellow), #e6b82e);
  color: #1a1a1a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 208, 66, 0.35);
}

/* History */
.history {
  padding: 4rem 0;
  background: var(--bg-card);
}

.history h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  color: var(--accent-yellow);
}

.history-content p {
  margin: 0 0 1rem;
  color: var(--text);
}

.history-content p:last-child {
  margin-bottom: 0;
}

.history-content strong {
  color: #fff;
}

/* Generations / Tabs */
.generations {
  padding: 4rem 0 5rem;
}

.generations h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  color: var(--accent-yellow);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.tab[aria-selected="true"] {
  color: var(--accent-yellow);
  background: rgba(245, 208, 66, 0.12);
  border-color: rgba(245, 208, 66, 0.35);
}

.panels {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.panel p {
  margin: 0 0 0.75rem;
  color: var(--text);
}

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

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-link {
  color: var(--accent-yellow);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .hero-sprites img {
    width: 72px;
    height: 72px;
  }

  .tabs {
    gap: 0.35rem;
  }

  .tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}
