/* ============================================
   EARLY 2000s POKEMON CARD TRACKER CSS
   Replace Tailwind script with this CSS!
   ============================================ */

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

body {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', 'Trebuchet MS', 'Arial', sans-serif !important;
  background: #FFD700;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
  min-height: 100vh;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes rainbow {
  0% { color: #FFD700; }
  25% { color: #FF69B4; }
  50% { color: #00FF00; }
  75% { color: #00BFFF; }
  100% { color: #FFD700; }
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.5; }
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-between: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.grid {
  display: grid;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.w-full {
  width: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-12 {
  padding: 3rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.font-bold {
  font-weight: bold;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.shadow-2xl {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.cursor-pointer {
  cursor: pointer;
}

.transition {
  transition: all 0.2s;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-50 {
  z-index: 50;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

/* ============================================
   RETRO COMPONENTS
   ============================================ */

.retro-container {
  min-height: 100vh;
}

.retro-header {
  background: linear-gradient(to bottom, #4169E1, #1E90FF);
  border-bottom: 5px ridge #FFD700;
  box-shadow: 0 5px 0 #000;
  padding: 20px;
}

.retro-title {
  font-size: 32px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  animation: rainbow 3s infinite;
}

/* BUTTONS */
.retro-button {
  background: linear-gradient(to bottom, #FF6347, #DC143C);
  border: 3px outset #FFA07A;
  border-radius: 10px;
  color: white;
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
  text-shadow: 1px 1px 2px #000;
  transition: all 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.retro-button:hover {
  background: linear-gradient(to bottom, #FF4500, #FF0000);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
}

.retro-button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  border-style: inset;
}

.retro-button:disabled {
  background: linear-gradient(to bottom, #999, #666);
  cursor: not-allowed;
  opacity: 0.6;
}

.retro-button-blue {
  background: linear-gradient(to bottom, #4169E1, #0000CD);
  border: 3px outset #87CEEB;
}

.retro-button-blue:hover:not(:disabled) {
  background: linear-gradient(to bottom, #1E90FF, #0000FF);
}

.retro-button-green {
  background: linear-gradient(to bottom, #32CD32, #228B22);
  border: 3px outset #90EE90;
}

.retro-button-green:hover:not(:disabled) {
  background: linear-gradient(to bottom, #00FF00, #008000);
}

.retro-button-purple {
  background: linear-gradient(to bottom, #9370DB, #8B008B);
  border: 3px outset #DDA0DD;
}

.retro-button-purple:hover:not(:disabled) {
  background: linear-gradient(to bottom, #BA55D3, #9400D3);
}

.retro-button-small {
  font-size: 14px;
  padding: 8px 16px;
}

/* CARDS */
.retro-card {
  background: white;
  border: 4px ridge #4169E1;
  border-radius: 15px;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
  padding: 15px;
  transition: all 0.2s;
}

.retro-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.4);
}

/* INPUTS */
.retro-input {
  border: 3px inset #DDD;
  border-radius: 5px;
  padding: 10px;
  font-family: 'Comic Sans MS', cursive;
  font-size: 14px;
  background: #FFF;
  width: 100%;
}

.retro-input:focus {
  outline: 3px solid #FFD700;
  border-color: #4169E1;
}

select {
  border: 3px inset #DDD;
  border-radius: 5px;
  padding: 10px;
  font-family: 'Comic Sans MS', cursive;
  font-size: 14px;
  background: white;
}

select:focus {
  outline: 3px solid #FFD700;
  border-color: #4169E1;
}

/* BADGE */
.retro-badge {
  background: linear-gradient(to right, #FF0000, #FF69B4);
  border: 2px solid #FFD700;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  animation: pulse 1s infinite;
}

/* MODAL */
.retro-modal {
  background: white;
  border: 5px ridge #4169E1;
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  padding: 25px;
  max-height: 90vh;
  overflow-y: auto;
}

.retro-modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

/* TABS */
.retro-tab {
  background: linear-gradient(to bottom, #87CEEB, #4169E1);
  border: 3px outset #FFF;
  border-radius: 10px 10px 0 0;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 0 #000;
  transition: all 0.2s;
  cursor: pointer;
  padding: 12px 24px;
  font-size: 16px;
  position: relative;
}

.retro-tab-active {
  background: linear-gradient(to bottom, #FFD700, #FFA500);
  border-color: #FF6347;
  transform: translateY(-3px);
}

.retro-tab:hover {
  background: linear-gradient(to bottom, #00BFFF, #1E90FF);
}

/* ERROR */
.retro-error {
  background: #FFFF99;
  border: 3px dashed #FF0000;
  color: #8B0000;
  font-weight: bold;
  animation: shake 0.5s;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

/* LOGIN BOX */
.retro-login-box {
  background: linear-gradient(135deg, #FF69B4, #FFD700, #00FF00, #00BFFF);
  background-size: 400% 400%;
  animation: gradient 5s ease infinite;
  border: 5px ridge #000;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* POKEBALL */
.retro-pokeball {
  animation: spin 3s linear infinite;
}

/* STAR DIVIDER */
.star-divider {
  text-align: center;
  color: #FFD700;
  font-size: 24px;
  text-shadow: 2px 2px 0 #000;
  margin: 20px 0;
}

/* MARQUEE STYLING */
marquee {
  background: #FF69B4;
  padding: 10px;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  color: #FFD700;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 2px 2px 0 #000;
}

/* GRID LAYOUTS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* IMAGE STYLING */
img {
  max-width: 100%;
  height: auto;
}

.object-contain {
  object-fit: contain;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

/* SPACING */
.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* TEXT COLORS */
.text-gray-800 {
  color: #1f2937;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-500 {
  color: #6b7280;
}

.text-blue-600 {
  color: #2563eb;
}

.text-red-600 {
  color: #dc2626;
}

.text-green-800 {
  color: #166534;
}

.text-red-800 {
  color: #991b1b;
}

/* BACKGROUND COLORS */
.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.bg-green-100 {
  background-color: #dcfce7;
}

.bg-gray-200 {
  background-color: #e5e7eb;
}

/* RESPONSIVE */
@media (min-width: 640px) {
  .sm\\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .md\\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .lg\\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* SPECIAL EFFECTS */
.glow-text {
  animation: blink 2s infinite;
}

.retro-divider {
  border: 0;
  height: 3px;
  background: linear-gradient(to right, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #9400D3);
  margin: 20px 0;
}

/* FUN EXTRAS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Trebuchet MS', sans-serif;
}

a {
  color: #0000FF;
  text-decoration: underline;
  font-weight: bold;
}

a:visited {
  color: #800080;
}

a:hover {
  color: #FF0000;
}