/*
 Theme Name:   PokeAnalytics Prototype
 Description:  A child theme dexmaxx
 Author:       DGen, LLC
 Template:     twentytwentyfive
 Version:      1.0.0
*/
/* ==========================================================================
   POKEANALYTICS PROTOTYPE STYLES
   These styles are scoped to only affect pages with the .tcg-prototype-page class.
   ========================================================================== */

/* 1. Base Overrides (Scoped to prototype pages ONLY) */
.tcg-prototype-page {
  background-color: #0f172a;
  color: #f8fafc;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tcg-prototype-page * {
  box-sizing: border-box;
}

/* 2. Top Navigation */
.tcg-prototype-page .header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
  position: relative;
  padding: 2rem 5%;
}

.tcg-prototype-page .back-btn {
  position: absolute;
  left: 5%;
  top: 2rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.tcg-prototype-page .back-btn:hover {
  color: #3b82f6;
}

.tcg-prototype-page h1 {
  font-size: 2.5rem;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

/* 3. Main Layout Engine (Flexbox/Grid) */
.tcg-prototype-page .main-layout {
  display: flex;
  gap: 3rem;
  width: 100%;
  max-width: 1500px;
  align-items: flex-start;
  padding: 0 5%;
  margin: 0 auto;
}

/* 4. The 3D Binder Visuals */
.tcg-prototype-page .binder-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  perspective: 1500px;
  flex: 2; 
}

.tcg-prototype-page .binder-page {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  background-color: #1e293b;
  padding: 24px;
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 2px solid #334155;
  flex: 1;
  transform-style: preserve-3d;
  transform-origin: center left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* Page Turn Animations */
.tcg-prototype-page .turn-next { transform: rotateY(-90deg) scale(0.95); opacity: 0; }
.tcg-prototype-page .turn-prev { transform: rotateY(90deg) scale(0.95); opacity: 0; }

/* 5. Individual Card Slots */
.tcg-prototype-page .card-slot {
  aspect-ratio: 2.5 / 3.5;
  background: linear-gradient(135deg, #334155, #0f172a);
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
  border: 2px solid transparent;
}

.tcg-prototype-page .card-slot:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  border-color: #3b82f6; 
}

.tcg-prototype-page .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
  filter: grayscale(100%) brightness(0.5); 
}

.tcg-prototype-page .card-slot.owned .card-image {
  filter: grayscale(0%) brightness(1);
}

/* Badges & Numbers */
.tcg-prototype-page .card-number {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
}

.tcg-prototype-page .quantity-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #3b82f6;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #1e293b;
  opacity: 0; 
  transition: opacity 0.2s;
  z-index: 10;
}

.tcg-prototype-page .card-slot.owned .quantity-badge { opacity: 1; }

/* 6. Navigation Arrows */
.tcg-prototype-page .nav-arrow {
  background: none;
  border: none;
  color: #475569;
  font-size: 4rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  user-select: none;
}

.tcg-prototype-page .nav-arrow:hover:not(:disabled) {
  color: #f8fafc;
  transform: scale(1.1);
}

.tcg-prototype-page .nav-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* 7. Preview Panel (Right Side Dashboard) */
.tcg-prototype-page .preview-panel {
  flex: 1; 
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 2rem;
  position: sticky;
  top: 2rem; 
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.tcg-prototype-page .preview-image-container {
  width: 100%;
  max-width: 300px;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.tcg-prototype-page .preview-large-image {
  width: 100%;
  display: block;
  transition: opacity 0.2s ease-in-out;
}

.tcg-prototype-page .preview-data {
  width: 100%;
  background-color: #0f172a;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #334155;
}

.tcg-prototype-page .preview-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #f8fafc;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.5rem;
}

.tcg-prototype-page .preview-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.tcg-prototype-page .data-point span { display: block; }
.tcg-prototype-page .data-label { font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.2rem; }
.tcg-prototype-page .data-value { font-size: 1.1rem; font-weight: 600; color: #cbd5e1; }

.tcg-prototype-page .empty-preview-text {
  color: #94a3b8;
  text-align: center;
  font-style: italic;
  margin-top: 50%;
}