/* Druygon Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Nunito:wght@400;700;900&display=swap');

:root {
  --poke-red: #E3350D;
  --poke-blue: #3B4CCA;
  --poke-yellow: #FFCB05;
  --poke-gold: #B3A125;
  --poke-dark: #1a1a2e;
  --poke-light: #f0f0f0;
  --poke-green: #4CAF50;
  --poke-purple: #9C27B0;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--poke-dark);
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
}

.pixel-font { font-family: 'Press Start 2P', monospace; }

/* Pokeball background pattern */
.pokeball-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(227,53,13,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59,76,202,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,203,5,0.05) 0%, transparent 70%);
  background-color: var(--poke-dark);
}

/* Floating pokeballs */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.floating-pokeball {
  position: fixed;
  font-size: 2rem;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Button styles */
.poke-btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 12px 28px;
  border: 3px solid var(--poke-yellow);
  border-radius: 50px;
  background: linear-gradient(135deg, var(--poke-red), #ff6b35);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.poke-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255,203,5,0.5);
}

.poke-btn:active { transform: scale(0.95); }

.poke-btn.blue {
  background: linear-gradient(135deg, var(--poke-blue), #5b6bea);
}

.poke-btn.green {
  background: linear-gradient(135deg, var(--poke-green), #66BB6A);
}

/* Card styles */
.poke-card {
  background: linear-gradient(145deg, #2a2a4a, #1e1e3a);
  border: 3px solid var(--poke-yellow);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.poke-card::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,203,5,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.poke-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,203,5,0.2);
  border-color: #fff;
}

/* HP Bar */
.hp-bar-container {
  width: 100%;
  height: 20px;
  background: #333;
  border-radius: 10px;
  border: 2px solid #555;
  overflow: hidden;
  position: relative;
}

.hp-bar {
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--poke-green), #8BC34A);
}

.hp-bar.medium { background: linear-gradient(90deg, #FF9800, #FFC107); }
.hp-bar.low { background: linear-gradient(90deg, var(--poke-red), #FF5722); }

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px rgba(255,203,5,0.5); }
  50% { text-shadow: 0 0 30px rgba(255,203,5,0.9), 0 0 60px rgba(255,203,5,0.4); }
}

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

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

.bounce { animation: bounce 2s ease-in-out infinite; }
.shake { animation: shake 0.5s ease-in-out; }
.glow { animation: glow 2s ease-in-out infinite; }
.slide-in { animation: slideIn 0.6s ease forwards; }

/* Back button */
.back-btn {
  position: fixed;
  top: 15px; left: 15px;
  z-index: 100;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--poke-yellow);
  color: var(--poke-yellow);
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
}

.back-btn:hover { background: var(--poke-yellow); color: var(--poke-dark); }

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(26,26,46,0.95), rgba(26,26,46,0.98));
  border-top: 2px solid var(--poke-yellow);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 99;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #aaa;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 8px 12px;
  min-width: 60px;
  transition: all 0.2s;
  text-align: center;
}

.bottom-nav a .nav-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  color: var(--poke-yellow);
  transform: translateY(-2px);
}

.bottom-nav a.active .nav-icon {
  filter: drop-shadow(0 0 8px rgba(255,203,5,0.6));
}

/* Add padding to body content to not be hidden by bottom nav */
body {
  padding-bottom: 70px;
}

/* Responsive */
@media (max-width: 768px) {
  .poke-btn { font-size: 0.95rem; padding: 10px 22px; }
  .poke-card { padding: 16px; }
}

@media (max-width: 400px) {
  .bottom-nav a {
    font-size: 0.65rem;
    padding: 6px 8px;
    min-width: 50px;
  }
  
  .bottom-nav a .nav-icon {
    font-size: 1.3rem;
  }
}
