/* Global tweaks not covered by Tailwind utilities */
:root {
  color-scheme: light;
  --pokemon-yellow: #FFCB05;
  --pokemon-blue: #2C72B8;
  --pokemon-dark-blue: #1E5A8A;
  --pokemon-shadow: rgba(0, 0, 0, 0.3);
}

/* Hide default cursor */
* {
  cursor: none !important;
}

/* Custom animated Poké Ball cursor */
.custom-cursor {
  position: fixed;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  display: none;
}

.custom-cursor.active {
  display: block;
}

.custom-cursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.8)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
  animation: cursorPulse 1.5s ease-in-out infinite, cursorRotate 3s linear infinite;
}

/* Pulse animation for visibility */
@keyframes cursorPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

/* Subtle rotation animation */
@keyframes cursorRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Larger cursor on hover for clickable elements */
.custom-cursor.hover {
  width: 56px;
  height: 56px;
  animation: cursorHover 0.3s ease-out;
}

@keyframes cursorHover {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Keep default cursor for text inputs and textareas */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
  cursor: text !important;
}

/* Show text cursor in input fields */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  cursor: text !important;
}

/* Pokémon Official Style Text Effect - Blue text with yellow outline (clear and readable) */
.pokemon-text {
  color: var(--pokemon-blue);
  text-shadow: 
    /* Yellow outline - all directions for clear visibility */
    -2px -2px 0 var(--pokemon-yellow),
    -1px -2px 0 var(--pokemon-yellow),
    0px -2px 0 var(--pokemon-yellow),
    1px -2px 0 var(--pokemon-yellow),
    2px -2px 0 var(--pokemon-yellow),
    -2px -1px 0 var(--pokemon-yellow),
    2px -1px 0 var(--pokemon-yellow),
    -2px 0px 0 var(--pokemon-yellow),
    2px 0px 0 var(--pokemon-yellow),
    -2px 1px 0 var(--pokemon-yellow),
    2px 1px 0 var(--pokemon-yellow),
    -2px 2px 0 var(--pokemon-yellow),
    -1px 2px 0 var(--pokemon-yellow),
    0px 2px 0 var(--pokemon-yellow),
    1px 2px 0 var(--pokemon-yellow),
    2px 2px 0 var(--pokemon-yellow),
    /* 3D shadow effect - yellow extending down and right */
    3px 3px 0 var(--pokemon-yellow),
    4px 4px 0 var(--pokemon-yellow),
    5px 5px 0 var(--pokemon-yellow),
    /* Dark shadow for depth */
    6px 6px 4px rgba(0, 0, 0, 0.3);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Pokemon', 'Press Start 2P', Arial, sans-serif;
  line-height: 1.2;
}

.pokemon-text-subtitle {
  color: var(--pokemon-blue);
  text-shadow: 
    -2px -2px 0 var(--pokemon-yellow),
    2px -2px 0 var(--pokemon-yellow),
    -2px 2px 0 var(--pokemon-yellow),
    2px 2px 0 var(--pokemon-yellow),
    3px 3px 0 var(--pokemon-yellow),
    4px 4px 0 var(--pokemon-yellow),
    5px 5px 4px rgba(0, 0, 0, 0.25);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Pokemon', 'Press Start 2P', Arial, sans-serif;
  line-height: 1.3;
}

/* Clear, readable content font (like Pokémon card text) */
.pokemon-content-text {
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* Pokémon style background */
.pokemon-bg {
  background: var(--pokemon-yellow);
  min-height: 100vh;
}

/* Pokémon style card - like the calculator cards in the image */
.pokemon-card-official {
  background: #fefefe;
  border: 4px solid var(--pokemon-blue);
  border-radius: 1.25rem;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: visible;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pokemon-card-official::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--pokemon-blue) 0%, var(--pokemon-dark-blue) 50%, var(--pokemon-blue) 100%);
  border-radius: 1.25rem 1.25rem 0 0;
}

/* Card icon container (top-left) */
.pokemon-card-icon {
  width: 4rem;
  height: 4rem;
  border: 3px solid var(--pokemon-blue);
  border-radius: 0.75rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ghosted background icon (top-right) */
.pokemon-card-bg-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8rem;
  height: 8rem;
  opacity: 0.15;
  z-index: 0;
}

/* Pokémon style button */
.pokemon-btn-official {
  background: linear-gradient(135deg, var(--pokemon-yellow) 0%, #FFD93D 100%);
  color: var(--pokemon-blue);
  border: 4px solid var(--pokemon-blue);
  border-radius: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  box-shadow: 
    0 4px 0 var(--pokemon-blue),
    0 6px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  position: relative;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
  font-family: 'Pokemon', 'Press Start 2P', Arial, sans-serif;
  font-size: 0.7em;
}

.pokemon-btn-official:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 0 var(--pokemon-blue),
    0 8px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pokemon-btn-official:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 0 var(--pokemon-blue),
    0 4px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 150ms ease;
  color: #2C72B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
}

.nav-link:hover {
  color: var(--pokemon-yellow);
  background: var(--pokemon-blue);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.card {
  border-radius: 0.9rem;
  background-color: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.25);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: #0ea5e9;
  color: #f8fafc;
  font-weight: 700;
  padding: 0.65rem 1.2rem;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
  min-width: 8rem;
}

.primary-btn:hover {
  background-color: #0284c7;
  box-shadow: 0 8px 16px -12px rgba(2, 132, 199, 0.6);
}

.primary-btn:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 3px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: #e2e8f0;
  color: #475569;
  font-weight: 700;
  padding: 0.65rem 1.2rem;
  min-width: 8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2C72B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.type-select {
  width: 100%;
  border-radius: 0.75rem;
  border: 3px solid var(--pokemon-blue);
  background-color: #ffffff;
  padding: 0.7rem 0.9rem;
  color: #2C72B8;
  font-weight: 700;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--pokemon-blue) 50%), linear-gradient(135deg, var(--pokemon-blue) 50%, transparent 50%);
  background-position: calc(100% - 1.125rem) calc(50% - 0.19rem), calc(100% - 0.875rem) calc(50% - 0.19rem);
  background-size: 0.375rem 0.375rem, 0.375rem 0.375rem;
  background-repeat: no-repeat;
  box-shadow: 
    0 2px 0 rgba(44, 114, 184, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.type-select:focus-visible {
  outline: 3px solid var(--pokemon-yellow);
  outline-offset: 2px;
  box-shadow: 
    0 2px 0 rgba(44, 114, 184, 0.2),
    0 0 0 3px var(--pokemon-yellow),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Icons inside select options */
.type-select option[data-icon] {
  background-repeat: no-repeat;
  background-position: 0.6rem 50%;
  background-size: 1.2rem 1.2rem;
  padding-left: 2.2rem;
}

.type-select option {
  padding: 0.6rem 0.8rem;
}

.type-icon-preview {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: contain;
}

.type-icon-preview.hidden {
  display: none;
}

/* Fade animation for result reveal */
@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInCard 180ms ease forwards;
}

/* Tool card styles for homepage */
.tool-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  height: 100%;
}

.tool-card:hover {
  text-decoration: none;
}

.tool-card:focus {
  outline: none;
}

/* Smooth transitions for all interactive elements */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pokémon-themed styles */
.pokemon-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 3px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.pokemon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e60012 0%, #ff6b6b 50%, #e60012 100%);
}

.pokemon-card-attacker {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
  border-color: #fca5a5;
}

.pokemon-card-defender {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}

.pokemon-btn {
  background: linear-gradient(135deg, #e60012 0%, #ff4757 100%);
  color: white;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(230, 0, 18, 0.3), 0 2px 4px -1px rgba(230, 0, 18, 0.2);
  transition: all 0.2s ease;
  border: 2px solid #c1121f;
  position: relative;
  overflow: hidden;
}

.pokemon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.pokemon-btn:hover::before {
  left: 100%;
}

.pokemon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(230, 0, 18, 0.4), 0 4px 6px -1px rgba(230, 0, 18, 0.3);
}

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

.pokemon-result-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 3px solid #cbd5e1;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.pokemon-result-card::after {
  content: '⚡';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  opacity: 0.1;
}

.type-select-pokemon {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.type-select-pokemon:focus {
  outline: none;
  border-color: #e60012;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
  background: #ffffff;
}

.pokemon-section-header {
  background: linear-gradient(135deg, var(--pokemon-blue) 0%, var(--pokemon-dark-blue) 100%);
  color: var(--pokemon-yellow);
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem 0.75rem 0 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 
    0 2px 0 rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 
    -1px -1px 0 var(--pokemon-blue),
    1px -1px 0 var(--pokemon-blue),
    -1px 1px 0 var(--pokemon-blue),
    1px 1px 0 var(--pokemon-blue);
  font-family: 'Pokemon', 'Press Start 2P', Arial, sans-serif;
  font-size: 0.7em;
}

.pokemon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #cbd5e1;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.pokemon-stat-bar {
  height: 1.5rem;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  border-radius: 9999px;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.pokemon-stat-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Essential Pokémon Tools SVG logo styling */
img[src="essential-pokemon-tools.svg"],
img[src*="essential-pokemon-tools.svg"] {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pokeball-decoration {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.05;
  pointer-events: none;
}

.pokeball-decoration svg {
  width: 100%;
  height: 100%;
}

