/* KantoDex - Modern Dark Theme */

/* Base Elements */
:root {
  --bg-color: #0f1014;
  --bg-secondary: #171923;
  --text-primary: #f0f0f2;
  --text-secondary: #a0aec0;
  --accent-1: #ff5e5b;
  --accent-2: #31c4ff;
  --accent-3: #00b894;
  --border-color: #2d3748;
  --card-bg: #1a202c;
  --link-color: #63b3ed;
  --link-hover: #90cdf4;
  
  /* Type Colors */
  --grass: #78c850;
  --fire: #f05030; 
  --water: #6890f0;
  --electric: #f8d030;
  --psychic: #f85888;
  --normal: #a8a878;
  --fighting: #c03028;
  --flying: #a890f0;
  --poison: #a040a0;
  --ground: #e0c068;
  --rock: #b8a038;
  --bug: #a8b820;
  --ghost: #705898;
  --dragon: #7038f8;
  --ice: #98d8d8;
}

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

body {
  font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Typography */
h1 {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  color: var(--accent-2);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

h3 {
  font-size: 1.5rem;
  color: var(--accent-1);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

p, li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

em {
  color: var(--text-primary);
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--accent-2);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Navigation */
nav {
  margin: 2rem 0;
}

/* Pokemon Entries */
img {
  max-width: 100px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.7));
}

strong {
  color: var(--accent-2);
  font-size: 1.2rem;
}

/* Links */
a[href^="#"] {
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}

a[href^="#"]:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Pokemon Cards */
p {
  margin-bottom: 1.5rem;
}

p img + strong {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
  border: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

p img + strong:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-2);
}

p img {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Horizontal Rule */
hr {
  height: 1px;
  background-color: var(--border-color);
  border: none;
  margin: 2rem 0;
}

/* Back to Top Link */
p:last-child {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  p img {
    display: block;
    margin: 0 auto 1rem auto;
  }
  
  p img + strong {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: fadeIn 0.6s ease-out;
}