/* ============================================
   POKÉMON GENERATOR - GLOBAL STYLES
   Premium SaaS Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Righteous&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #ffd60a;
  --accent: #4cc9f0;
  --dark: #0d0d0d;
  --dark-2: #1a1a2e;
  --dark-3: #16213e;
  --dark-card: #1e1e2e;
  --light: #f8f9fa;
  --light-2: #e9ecef;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;
  --success: #52b788;
  --warning: #ffd60a;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 70px;
  --font-display: 'Righteous', cursive;
  --font-body: 'Nunito', sans-serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-main: #0d0d1a;
  --bg-card: #1e1e2e;
  --bg-nav: rgba(13,13,26,0.95);
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --border-color: #2d2d44;
  --input-bg: #2d2d44;
}

[data-theme="light"] {
  --bg-main: #f0f2f5;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.95);
  --text-primary: #1a1a2e;
  --text-secondary: #495057;
  --border-color: #dee2e6;
  --input-bg: #f8f9fa;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  white-space: nowrap;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(230,57,70,0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(230,57,70,0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  color: var(--text-primary);
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: rotate(20deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ MOBILE NAV ============ */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition);
}

.mobile-menu a:hover { background: rgba(230,57,70,0.1); color: var(--primary); }

/* ============ HERO SECTION ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(230,57,70,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(76,201,240,0.1) 0%, transparent 60%),
              radial-gradient(ellipse at 60% 80%, rgba(255,214,10,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.3);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 8px 24px rgba(230,57,70,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(230,57,70,0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Generate button pulse animation */
.btn-generate {
  background: linear-gradient(135deg, var(--primary), #c1121f);
  color: white;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(230,57,70,0.4);
  position: relative;
  overflow: hidden;
}

.btn-generate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-generate:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(230,57,70,0.55);
}

.btn-generate:hover::after { opacity: 1; }
.btn-generate:active { transform: scale(0.97); }

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(230,57,70,0.3);
}

/* ============ POKEMON CARD ============ */
.pokemon-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pokemon-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--type-color, rgba(230,57,70,0.05)) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}

.pokemon-card:hover::before { opacity: 1; }

.pokemon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(230,57,70,0.3);
}

.pokemon-card .pokemon-img-wrap {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  background: radial-gradient(ellipse, rgba(230,57,70,0.08) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pokemon-card .pokemon-img-wrap img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.pokemon-card:hover .pokemon-img-wrap img {
  transform: scale(1.1) translateY(-4px);
}

.pokemon-card .pokemon-id {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.pokemon-card .pokemon-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: capitalize;
}

.pokemon-card .pokemon-types {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.type-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Type Colors */
.type-normal { background: #A8A878; color: white; }
.type-fire { background: #F08030; color: white; }
.type-water { background: #6890F0; color: white; }
.type-electric { background: #F8D030; color: #333; }
.type-grass { background: #78C850; color: white; }
.type-ice { background: #98D8D8; color: #333; }
.type-fighting { background: #C03028; color: white; }
.type-poison { background: #A040A0; color: white; }
.type-ground { background: #E0C068; color: #333; }
.type-flying { background: #A890F0; color: white; }
.type-psychic { background: #F85888; color: white; }
.type-bug { background: #A8B820; color: white; }
.type-rock { background: #B8A038; color: white; }
.type-ghost { background: #705898; color: white; }
.type-dragon { background: #7038F8; color: white; }
.type-dark { background: #705848; color: white; }
.type-steel { background: #B8B8D0; color: #333; }
.type-fairy { background: #F0B6BC; color: #333; }

/* ============ POKEMON DISPLAY (MAIN GENERATOR) ============ */
.main-pokemon-display {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.main-pokemon-display .pokemon-img-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 1.5rem;
  background: radial-gradient(ellipse, rgba(230,57,70,0.1) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-pokemon-display img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
  animation: floatAnim 3s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.main-pokemon-display .pokemon-id {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.main-pokemon-display .pokemon-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.main-pokemon-display .pokemon-types {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.main-pokemon-display .pokemon-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ LOADING SPINNER ============ */
.spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pokeball spinner */
.pokeball-spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--primary) 50%, white 50%);
  border: 3px solid #333;
  animation: spin 1s linear infinite;
  position: relative;
  box-shadow: 0 0 20px rgba(230,57,70,0.4);
}

.pokeball-spinner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  border: 3px solid #333;
}

.pokeball-spinner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #333;
  transform: translateY(-50%);
}

/* ============ SECTION ============ */
.section {
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ============ TOOL GRID ============ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(230,57,70,0.3);
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.tool-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.tool-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* ============ FILTER BAR ============ */
.filter-bar {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 140px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: 0.6rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

/* ============ POKEMON GRID ============ */
.pokemon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* ============ SHINY BADGE ============ */
.shiny-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ffd60a, #ff9f1c);
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ FAVORITE BUTTON ============ */
.fav-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.25rem;
  line-height: 1;
}

.fav-btn:hover { transform: scale(1.2); }
.fav-btn.active { animation: heartPop 0.3s ease; }

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ============ STATS BAR ============ */
.stat-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  width: 80px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 35px;
  text-align: right;
}

/* ============ SEO CONTENT ============ */
.seo-content {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 3rem;
  margin-top: 4rem;
}

.seo-content h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.seo-content h2:first-child { margin-top: 0; }

.seo-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

.seo-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.seo-content ul li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
  font-size: 0.975rem;
}

.seo-content a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(230,57,70,0.3);
}

.seo-content a:hover { text-decoration-color: var(--primary); }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark-2);
  color: #adb5bd;
  padding: 4rem 1.5rem 2rem;
  margin-top: 5rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
  color: white;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6c757d;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: #6c757d;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.footer-bottom a { color: var(--primary); }

/* ============ FEATURES SECTION ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(230,57,70,0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ STATS BAR (HOMEPAGE) ============ */
.stats-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 3rem 1.5rem;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* ============ TOAST NOTIFICATION ============ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  z-index: 9999;
  transform: translateX(200%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
}

.toast.show { transform: translateX(0); }

/* ============ CONTACT FORM ============ */
.contact-form {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(230,57,70,0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============ BLOG ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-tag {
  display: inline-block;
  background: rgba(230,57,70,0.1);
  color: var(--primary);
  border-radius: 100px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* ============ FAVORITES ============ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ============ ABOUT PAGE ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10v20c5.5 0 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white;
  margin-bottom: 1rem;
  position: relative;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pokemonEnter {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pokemon-card-enter {
  animation: pokemonEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SHARE BTN ============ */
.share-btn {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ FAQ ============ */
.faq-item {
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
  user-select: none;
}

.faq-question:hover { background: rgba(230,57,70,0.05); }

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-arrow {
  transition: transform 0.3s;
  font-size: 0.8rem;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand { grid-column: 1 / -1; }

  .pokemon-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .seo-content { padding: 2rem 1.25rem; }

  .filter-bar { flex-direction: column; }
  .filter-group { min-width: 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .pokemon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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