/* ── Tokens + globals ─────────────────────────────────────────── */
:root {
  --poke-red: #ee1515;
  --poke-red-dark: #b50f0f;
  --ink: #111;

  /* background tokens */
  --bg-cream: #fafafa;
  --bg-dot: rgba(0,0,0,.04);
}

html, body { height: 100%; background:#0a0a0a; }

.ix-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.flex-fill { flex: 1 0 auto; }

/* Improve readability of navbar links on red */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, .9);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .2rem;
}

/* ── High-contrast buttons ───────────────────────────────────── */
.btn-contrast {
  background: #fff; color: #000;
  border: 1px solid rgba(0, 0, 0, .2);
}
.btn-contrast:hover { background: #f3f3f3; color: #000; }

.btn-contrast-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .85);
}
.btn-contrast-outline:hover { background: #f7f6f620; color: #fff; }

.btn-contrast:focus,
.btn-contrast-outline:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ── Shared modal + red button styles ─────────────────────────── */
.bg-poke-red { background: var(--poke-red); }

.btn-poke-red { background: var(--poke-red); color: #fff; border: none; }
.btn-poke-red:hover { background: var(--poke-red-dark); color: #fff; }

.btn-light { color: #000; }

/* Header gradient */
.bg-poke-gradient{
  background: linear-gradient(90deg,
    var(--poke-red) 0%, #a54e4e 40%, #b50f0f 80%, #9c0d0d 100%);
  color:#fff;
}

/* Footer */
.ix-footer { background:#8a1111 !important; color:#fff !important; }
.ix-footer a { color:#ffd6d6 !important; }
.ix-footer a:hover{ color:#fff !important; text-decoration: underline; }
.ix-footer-stripe { height:6px; background: var(--poke-red); }

/* Navbar logo */
.ix-logo{
  height:30px; width:auto; display:block;
  border-radius:6px;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
}
@media (max-width:520px){
  .ix-logo{ height:26px; }
  .ix-brand-title{ font-size:1rem; }
  .ix-brand-sub{ font-size:.9rem; }
}

/* ─────────────────────────────────────────────────────────────── */
/*                      Page Background Themes                     */
/* ─────────────────────────────────────────────────────────────── */
.ix-bg{
  min-height:100%;
  background-color: var(--bg-cream);
  position: relative;
}

.ix-bg--pokesilk{
  background-image:
    radial-gradient(100vw 60vh at 50% 0%, rgba(0,0,0,.05), transparent 60%),
    radial-gradient(circle at 50% 120%, rgba(0,0,0,.06), transparent 55%),
    radial-gradient(1px 1px at 1px 1px, var(--bg-dot) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 6px 6px;
  background-repeat: no-repeat, no-repeat, repeat;
}

.ix-bg--pokeball-grid{
  background-color: var(--bg-cream);
  background-image:
    radial-gradient(1200px 800px at 50% -10%, rgba(0,0,0,.05), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(0,0,0,.06), transparent 55%),
    radial-gradient(circle at 50% 55%, rgba(0,0,0,.05) 0 7px, transparent 8px),
    linear-gradient(to bottom, rgba(0,0,0,.06) 0 1px, transparent 1px 50%, rgba(0,0,0,.06) 50% 51%, transparent 51% 100%);
  background-size: 100% 100%, 100% 100%, 140px 140px, 140px 140px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  filter: saturate(.95);
}

.ix-bg--arena{
  --arena-top:#f8f8fb; --arena-mid:#f2f3f7; --arena-bottom:#eef0f6;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0,0,0,.06), transparent 60%),
    conic-gradient(from 250deg at 50% 20%, rgba(255,255,255,.7), transparent 35%),
    linear-gradient(var(--arena-top), var(--arena-mid) 40%, var(--arena-bottom));
  background-blend-mode: normal, soft-light, normal;
}
main.container-xxl{ position:relative; z-index:1; }

@media (prefers-color-scheme: dark){
  :root{
    --bg-cream:#101214;
    --bg-dot: rgba(255,255,255,.04);
  }
}



 /* ─────────────────────────────────────────────────────────────── */
/*                        Card Grid + Tiles                        */
/* ─────────────────────────────────────────────────────────────── */

/* --- Layout Grid --- */
.home-featured {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1400px) {
  .home-featured {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
  }
}

@media (max-width: 1100px) {
  .home-featured {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

@media (max-width: 720px) {
  .home-featured {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}



/* --- Pokéball tile with visible backdrop + double container vibe --- */
/* tile base: no background so the ::before ball is visible */
.poke-tile{
  position: relative;
  aspect-ratio: 3 / 5.4;
  border-radius: 18px;
  overflow: hidden;
  background: transparent !important;    /* <- ensure no white/gray fill */
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Big Pokéball button on top of the red/white halves */
.poke-tile::before{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  z-index: 1;

  background:
    /* ball halves with seam */
    linear-gradient(#d60808 0 35%, #111111 35% 41%, #ffffff 41% 100%);
  background-size: 1100% 100%;
}

/* Inventory grid: avoid white showing under the footer pill */
#invGrid .poke-tile::before{
  background: linear-gradient(#d60808 0 35%, #111111 35% 41%, rgba(255,255,255,0) 41% 100%);
}

.poke-tile:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
}
.poke-tile:hover img{ transform: translate(-50%,-62%) scale(1.03); }


/* page skeleton */
.ix-page{ min-height:100vh; display:flex; flex-direction:column; }
.ix-page main.flex-fill{ flex:1 0 auto; }
.ix-footer{ flex:0 0 auto; position:relative; z-index:5; }



/* Footer stays in flow at the bottom of the tile */
.poke-tile > .poke-meta{
  position: static !important;     /* no absolute/relative tricks */
  align-self: stretch !important;
  z-index: 3 !important;
  min-height: 140px;               /* give prices room */
  padding: .7rem .85rem .9rem !important;
}

/* ✅ Card image centered WITHOUT absolute positioning */
.poke-tile > img{
  position: relative !important;   /* stay in normal flow */
  left: auto !important;
  top: auto !important;
  transform: none !important;

  display: block !important;
  width: var(--panel-w) !important;
  height: auto !important;
  aspect-ratio: 63 / 88 !important;
  margin: var(--panel-top) auto 0 !important;  /* centers horizontally */
  object-fit: contain !important;
  z-index: 2 !important;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

/* White inner panel (background only) */
.poke-tile::after{
  content:"";
  position:absolute;               /* background layer only */
  top: var(--panel-top) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: var(--panel-w) !important;
  aspect-ratio: 63 / 70 !important;
  border-radius: 14px !important;
  background:#fff;
}

/* Pokéball backdrop behind content */
.poke-tile::before{ z-index:0; pointer-events:none; }
.poke-tile::after { z-index:1; pointer-events:none; }

/* Use shared geometry for panel + image */
.poke-tile{ --panel-w: 86%; --panel-top: 12px; }

/* Tile — stacked: image (top) + footer (bottom) */
.poke-tile{
  display:flex;
  flex-direction:column;
  border-radius:16px;
  background:#fff; /* restore default white base for global tiles */
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  overflow:hidden; /* keep rounded corners; no bleed */
}
.poke-tile > img{
  order:1;
  width:100%;
  height:auto;
  aspect-ratio:3/4;
  object-fit:contain;
  display:block;
  padding:2px 2px 0 2px; /* small breathing room */
}

/* Footer panel (final) */
.poke-tile > .poke-meta{
  order:2;
  position:static !important;     /* kill any old overlay */
  top:auto !important; bottom:auto !important; left:auto !important; right:auto !important;
  background:#2b2f36 !important;  /* dark gray */
  color:#fff !important;
  border-radius:0 0 16px 16px !important;
  padding:.55rem .7rem .7rem !important;
  min-height:116px !important;
  display:grid !important;
  grid-template-rows:auto auto auto !important; /* name / main price line / price grid */
  gap:.3rem !important;
}
/* Variant + main price */
.poke-meta .meta-line2{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.6rem;
  margin-top:.2rem;
}
.variant-pill{
  font-size:.75rem;
  padding:.16rem .56rem;
  border-radius:999px;
  background:#3a3f46;
  border:1px solid #565b63;
  color:#fff;
  font-weight:700;
  line-height:1;
}
.poke-meta .price{
  font-weight:800;
  color:#ffb3b3;
  font-size:.9rem;
}

/* 4-row price list */
.price-grid{
  display:grid;
  grid-template-columns:max-content 1fr;
  column-gap:.5rem;
  row-gap:.12rem;
  font-size:.8rem;
  align-items:center;
  max-width:220px;
  margin:0 auto;
}
.price-grid .label{ color:#c9d2da; }
.price-grid .val{ color:#ffd9cc; font-weight:700; justify-self:end; }

/* Responsive tune */
@media (max-width:520px){
  .poke-grid{ gap:14px; }
  .poke-tile > .poke-meta{ min-height:110px !important; }
  .poke-meta .meta-name{ font-size:.92rem; }
}


.ix-page {
  /* Global black gradient across all pages — no seams while scrolling */
  background: linear-gradient(180deg, #0c0c0c 0%, #0a0a0a 45%, #080808 100%) !important;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: scroll; /* avoid GPU tearing lines */
}



/* previously duplicated background for .ix-page removed */


.ix-bg--modern-pokemon {
  /* Remove hero background image site-wide */
  background-image: none !important;
  background-color: var(--bg-cream);
}

.ix-hero-btn {
  display: inline-block;
  padding: 1rem 5rem; /* taller + wider */
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 0.75rem;
  background-color: #9e0505; /* Bootstrap warning yellow */
  color: #212529;
  text-decoration: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin-top: 11rem; /* pushes it lower */
}

.ix-hero-btn:hover {
  background-color: #9e0505;
  color: #fff;
}



/* === Thematic Modal Background === */
.modal-content.thematic {
  background-image: url('/assets/pokemonImage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1rem;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  max-height: 85vh;
  overflow-y: auto;
  padding: 1rem 1.5rem 0.75rem;
}

/* === Card Frame === */
.ix-card-frame {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.ix-card-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 63 / 88;
  object-fit: contain;
  border-radius: 12px;
}

/* === Name Styling (moved from modal header) */
.modal-title {
  margin-bottom: .25rem;
}

#cm-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 6px #a100ff, 0 0 12px rgba(255, 0, 255, 0.3);
}

#cm-number {
  font-size: 1rem;
  color: #ccc;
  margin-left: 0.4rem;
}

/* === Set + Variant Badge */
#cm-set,
#cm-variant {
  margin-bottom: 0.25rem;
}

/* === Price Chips (Left-Aligned Grid) */
#cm-prices .price-chips {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.5rem 1rem;
  justify-content: start;
  text-align: left;
}

/* === Add to Cart Button (Lowered to bottom of card) */
#cm-add-cart {
  min-width: 160px;
  margin-top: 7.5rem;
}

/* === 1. CARD IMAGE ZOOM-IN ON LOAD === */
.ix-card-frame img {
  opacity: 0;
  transform: scale(0.95);
  animation: cardZoomFade 0.5s ease forwards;
  animation-delay: 0.2s;
}

@keyframes cardZoomFade {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* === 2. ADD TO CART BUTTON: Glow Pulse Hover + Bounce Click === */
.btn-pink-glow {
  background: linear-gradient(135deg, #ff00cc, #a100ff);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.35);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  animation: fadeInBtn 0.4s ease;
}

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

/* Pulse glow on hover */
.btn-pink-glow:hover {
  box-shadow: 0 0 18px #ff00ff;
  transform: scale(1.03);
}

/* Click bounce + scale (Pokéball pop) */
.cart-bounce:active {
  animation: popCart 0.25s ease-out;
}

@keyframes popCart {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  /* Stack layout vertically */
  .modal-body .row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .ix-card-frame {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Card image animation still applies */
  .ix-card-frame img {
    animation: cardZoomFade 0.5s ease forwards;
  }

  /* Name & number centered */
  .modal-title {
    text-align: center;
  }

  #cm-name {
    font-size: 1.4rem;
    text-align: center;
    display: block;
  }

  #cm-number {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 0.1rem;
  }

  /* Badge row centered */
  #cm-set,
  #cm-variant {
    margin: 0 auto 0.5rem;
  }

  /* Price grid: full width */
  #cm-prices .price-chips {
    grid-template-columns: 1fr;
    justify-content: center;
    text-align: center;
  }

  /* Add to Cart: centered & responsive */
  #cm-add-cart {
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 1rem auto 0.5rem;
  }

  /* Slightly more padding inside modal */
  .modal-content.thematic {
    padding: 1.25rem 1rem;
  }
}





/* login model background */
/* Soft dark overlay for legibility */
.modal-content.thematic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* Ensures form elements stay above overlay */
.modal-content.thematic > * {
  position: relative;
  z-index: 1;
}

/* Optional: override white sections inside modal */
.thematic .modal-body,
.thematic .modal-footer {
  background: transparent !important;
}





/* ============================= */
/* Modal Container + Background */
/* ============================= */
.ix-card-modal {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #bb29ff; /* Purple border for fantasy pop */
  box-shadow: 0 0 80px rgba(188, 46, 255, 0.4);
  color: #f2f2f2;
  font-family: 'Poppins', sans-serif;
}

/* Modal background image + light base */
 #cardModal .modal-content{ position: relative; border-radius: 18px; border: 2px solid var(--poke-red, #ee1515);
   background: url("/assets/cardBackground.png") center / cover no-repeat, 
   radial-gradient(circle at 50% 20%, #fafafa 0%, #f1f1f1 60%, #e7e7e7 100%);
   box-shadow: 0 0 60px rgba(0,0,0,.45); color: var(--ink, #111); }

/* Layer to soften the background slightly */
.ix-card-modal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  backdrop-filter: blur(6px);
}

/* ========================= */
/* Card Frame & Card Image  */
/* ========================= */
.ix-card-frame {
  position: relative;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(145deg, #1e1e2f, #2d2d47);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.25);
}

.ix-card-frame img {
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

/* ========================= */
/* Header Text & Title      */
/* ========================= */
.modal-title,
.ix-card-modal .modal-header .modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 4px #ff00f5;
  margin-bottom: 8px;
}

/* ========================= */
/* Price Chips / Tag Styling */
/* ========================= */
.price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 10px;
}

.price-chip {
  background: linear-gradient(135deg, #7e00d8, #e100ff);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.price-chip:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff00ff;
}

.price-chip__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #f7cfff;
  letter-spacing: 0.05em;
}

.price-chip__value {
  color: #fff5e6;
  font-weight: 800;
  font-size: 0.9rem;
}

/* ========================= */
/* Responsive tweaks         */
/* ========================= */
@media (max-width: 520px) {
  .ix-price-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .modal-title {
    font-size: 1.1rem;
  }
}







 




























