/* ==========================================================================
   ASTRAL COBBLEMON — CARTOON POKÉMON DESIGN SYSTEM & CENTRALCART THEME
   Estilo: Cartoon, Pokémon, Colorido, Vibrante, Contornos Marcados & Sombras 3D
   ========================================================================== */

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  font-family: 'Nunito', sans-serif;
}

h1, h2, h3, .font-display {
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif;
  letter-spacing: 0.01em;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ==========================================================================
   CENTRALCART DRAWERS & DIALOGS (PRESERVED)
   ========================================================================== */

@keyframes fade-in {
  from { background-color: rgba(15, 23, 42, 0); }
  to { background-color: rgba(15, 23, 42, 0.78); }
}

@keyframes fade-out {
  from { background-color: rgba(15, 23, 42, 0.78); }
  to { background-color: rgba(15, 23, 42, 0); }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0px); }
}

@keyframes slide-out {
  from { transform: translateX(0px); }
  to { transform: translateX(100%); }
}

#cart-drawer[data-state="open"] {
  animation: fade-in 0.3s forwards;
}

body.cart-open,
body.dialog-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#cart-drawer[data-state="closed"] {
  animation: fade-out 0.3s forwards;
}

#cart-drawer[data-state="open"] > div {
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#cart-drawer[data-state="closed"] > div {
  animation: slide-out 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#mobile-drawer[data-state="open"] {
  animation: fade-in 0.25s forwards;
}

#mobile-drawer[data-state="closed"] {
  animation: fade-out 0.25s forwards;
}

#mobile-drawer[data-state="open"] #mobile-drawer-content {
  transform: translateX(0);
}

#mobile-drawer[data-state="closed"] #mobile-drawer-content {
  transform: translateX(100%);
}

.dialog[data-state="open"] {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in 0.25s forwards;
}

.dialog[data-state="closed"] {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-out 0.25s forwards;
}

.dialog[data-state="open"] > div {
  animation: dialog-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dialog[data-state="closed"] > div {
  animation: dialog-out 0.15s ease-in forwards;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dialog-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-16px) scale(0.98); }
}

.centralcart-content iframe {
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   CARTOON BACKGROUNDS & SECTIONS
   ========================================================================== */

.astral-bg-pattern {
  background-color: #13112B;
  background-image:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 88% 14%, rgba(168, 85, 247, 0.20) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(250, 204, 21, 0.10) 0%, transparent 45%);
}

.astral-starfield {
  background-image:
    radial-gradient(2px 2px at 30px 40px, rgba(254, 240, 138, 0.7), transparent),
    radial-gradient(2px 2px at 110px 95px, rgba(56, 189, 248, 0.65), transparent),
    radial-gradient(2.5px 2.5px at 200px 50px, rgba(244, 114, 182, 0.6), transparent),
    radial-gradient(2px 2px at 290px 150px, rgba(167, 243, 208, 0.65), transparent);
  background-size: 360px 220px;
}

.cartoon-section-light {
  background: linear-gradient(180deg, #FFFDF7 0%, #F5F0FF 100%);
  color: #1E1B4B;
  border-top: 4px solid #1E1B4B;
  border-bottom: 4px solid #1E1B4B;
}

.cartoon-section-cream {
  background: linear-gradient(180deg, #FEF9C3 0%, #FFFDF7 100%);
  color: #1E1B4B;
  border-top: 4px solid #1E1B4B;
  border-bottom: 4px solid #1E1B4B;
}

.cartoon-section-sky {
  background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 100%);
  color: #1E1B4B;
  border-top: 4px solid #1E1B4B;
  border-bottom: 4px solid #1E1B4B;
}

.cartoon-section-cosmic {
  background: linear-gradient(180deg, #1E1B4B 0%, #13112B 100%);
  color: #FFFFFF;
}

/* ==========================================================================
   CARTOON CARDS, BADGES & BUTTONS (THICK OUTLINES + 3D OFFSET SHADOWS)
   ========================================================================== */

.astral-card,
.cartoon-card {
  background: linear-gradient(180deg, #1F1B4D 0%, #151236 100%);
  border: 3px solid #1E1B4B;
  border-radius: 1.35rem;
  box-shadow: 0 6px 0 #09071A, 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.astral-card:hover {
  transform: translateY(-3px);
  border-color: #38BDF8;
  box-shadow: 0 9px 0 #09071A, 0 16px 30px rgba(56, 189, 248, 0.2);
}

.astral-card-gold {
  background: linear-gradient(180deg, #271E54 0%, #171238 100%);
  border: 3px solid #FACC15;
  border-radius: 1.35rem;
  box-shadow: 0 6px 0 #713F12, 0 12px 28px rgba(250, 204, 21, 0.2);
}

.cartoon-card-gold {
  background: linear-gradient(180deg, #FEF08A 0%, #F59E0B 100%);
  color: #1E1B4B;
  border: 3px solid #1E1B4B;
  border-radius: 1.35rem;
  box-shadow: 0 6px 0 #1E1B4B;
}

.cartoon-card-light {
  background: #FFFFFF;
  color: #1E1B4B;
  border: 3px solid #1E1B4B;
  border-radius: 1.35rem;
  box-shadow: 0 6px 0 #1E1B4B;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.cartoon-card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 #1E1B4B;
}

.text-gradient-astral {
  background: linear-gradient(135deg, #38BDF8 0%, #C084FC 50%, #FACC15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FEF08A 0%, #FACC15 50%, #F97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-cartoon-stroke,
.cartoon-title-stroke {
  text-shadow: 0 3px 0 #0F0D26, 0 5px 12px rgba(0,0,0,0.45);
}

/* Botões Cartoon 3D */
.btn-astral-primary,
.btn-cartoon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 1rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1E1B4B;
  background: linear-gradient(180deg, #FEF08A 0%, #FACC15 100%);
  border: 3px solid #1E1B4B;
  box-shadow: 0 5px 0 #1E1B4B;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}

.btn-astral-primary:hover:not(:disabled),
.btn-cartoon:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 7px 0 #1E1B4B;
}

.btn-astral-primary:active:not(:disabled),
.btn-cartoon:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1E1B4B;
}

.btn-astral-primary:disabled,
.btn-cartoon:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-cartoon-gold {
  color: #1E1B4B;
  background: linear-gradient(180deg, #FEF08A 0%, #F59E0B 100%);
}

.btn-cartoon-blue,
.btn-astral-cosmic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 1rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(180deg, #38BDF8 0%, #2563EB 100%);
  border: 3px solid #1E1B4B;
  box-shadow: 0 5px 0 #1E1B4B;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}

.btn-cartoon-blue:hover:not(:disabled),
.btn-astral-cosmic:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 7px 0 #1E1B4B;
}

.btn-cartoon-purple {
  color: #FFFFFF;
  background: linear-gradient(180deg, #A855F7 0%, #7C3AED 100%);
}

.btn-cartoon-green {
  color: #1E1B4B;
  background: linear-gradient(180deg, #86EFAC 0%, #22C55E 100%);
}

.btn-cartoon-dark,
.btn-astral-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 1rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
  background: #2E296E;
  border: 3px solid #1E1B4B;
  box-shadow: 0 5px 0 #0F0D26;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-cartoon-dark:hover:not(:disabled),
.btn-astral-outline:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #3730A3;
  border-color: #38BDF8;
  box-shadow: 0 7px 0 #0F0D26;
}

/* ==========================================================================
   18 POKÉMON TYPE PILLS & GENERATION BUTTONS (OFFICIAL VIBRANT PALETTE)
   ========================================================================== */

.poke-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: #334155;
  border: 2px solid #1E1B4B;
  box-shadow: 0 3px 0 #1E1B4B;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.poke-type-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.poke-type-pill.active {
  outline: 3px solid #F59E0B;
  outline-offset: 1px;
  transform: translateY(-2px);
}

.poke-type-pill[data-type="all"] { background: #1E1B4B; color: #FBBF24; text-shadow: none; }
.type-bg-Normal, .poke-type-pill[data-type="Normal"] { background: #9CA3AF; color: #1E1B4B; text-shadow: none; }
.type-bg-Fogo, .poke-type-pill[data-type="Fogo"] { background: #F97316; }
.type-bg-Água, .type-bg-Agua, .poke-type-pill[data-type="Água"], .poke-type-pill[data-type="Agua"] { background: #3B82F6; }
.type-bg-Elétrico, .type-bg-Eletrico, .poke-type-pill[data-type="Elétrico"], .poke-type-pill[data-type="Eletrico"] { background: #EAB308; color: #1E1B4B; text-shadow: none; }
.type-bg-Planta, .poke-type-pill[data-type="Planta"] { background: #22C55E; }
.type-bg-Gelo, .poke-type-pill[data-type="Gelo"] { background: #06B6D4; }
.type-bg-Lutador, .poke-type-pill[data-type="Lutador"] { background: #DC2626; }
.type-bg-Venenoso, .poke-type-pill[data-type="Venenoso"] { background: #A855F7; }
.type-bg-Terrestre, .poke-type-pill[data-type="Terrestre"] { background: #D97706; }
.type-bg-Voador, .poke-type-pill[data-type="Voador"] { background: #6366F1; }
.type-bg-Psíquico, .type-bg-Psiquico, .poke-type-pill[data-type="Psíquico"], .poke-type-pill[data-type="Psiquico"] { background: #EC4899; }
.type-bg-Inseto, .poke-type-pill[data-type="Inseto"] { background: #84CC16; color: #1E1B4B; text-shadow: none; }
.type-bg-Pedra, .poke-type-pill[data-type="Pedra"] { background: #B45309; }
.type-bg-Fantasma, .poke-type-pill[data-type="Fantasma"] { background: #7C3AED; }
.type-bg-Dragão, .type-bg-Dragao, .poke-type-pill[data-type="Dragão"], .poke-type-pill[data-type="Dragao"] { background: #4F46E5; }
.type-bg-Sombrio, .poke-type-pill[data-type="Sombrio"] { background: #475569; }
.type-bg-Aço, .type-bg-Aco, .type-bg-Metálico, .poke-type-pill[data-type="Aço"], .poke-type-pill[data-type="Metálico"] { background: #64748B; }
.type-bg-Fada, .poke-type-pill[data-type="Fada"] { background: #F472B6; }

.poke-gen-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 0.85rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 800;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: #1E1B4B;
  background: #FFFFFF;
  border: 2px solid #1E1B4B;
  box-shadow: 0 3px 0 #1E1B4B;
  cursor: pointer;
  transition: all 0.12s ease;
}

.poke-gen-pill:hover {
  transform: translateY(-2px);
  background: #F1F5F9;
}

.poke-gen-pill.active {
  background: #F59E0B;
  color: #1E1B4B;
  transform: translateY(-2px);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.35);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #6366F1;
  border-radius: 9999px;
}

img {
  max-width: 100%;
}
