/* Custom styles for ANYPROG */

/* ── Keyframe Animations ─────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(34,211,238,.15), 0 0 60px rgba(168,85,247,.08); }
  50%       { box-shadow: 0 0 40px rgba(34,211,238,.35), 0 0 90px rgba(168,85,247,.22); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
@keyframes border-glow {
  0%, 100% { border-color: rgba(34,211,238,.2); }
  50%       { border-color: rgba(34,211,238,.6); }
}

/* ── Shimmer text (like in preview) ─────────────────── */
.shimmer-text {
  background: linear-gradient(90deg, #fff 0%, #a5f3fc 20%, #c084fc 45%, #f0abfc 60%, #a5f3fc 80%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ── Gradient text (static) ──────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 25px rgba(99,102,241,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
}
.btn-secondary:hover { background: rgba(255,255,255,0.13); }
.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.25rem;
  transition: all 0.3s;
}
.card:hover { border-color: rgba(99,102,241,0.4); box-shadow: 0 8px 30px rgba(99,102,241,0.15); transform: translateY(-2px); }
.nav-link {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover { color: #fff; }
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
@media (max-width: 640px) { .section-title { font-size: 1.75rem; } }
.badge {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #818cf8;
  border-radius: 999px;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}
.badge-green {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}
.badge-amber {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: #fbbf24;
}
.input-field {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.input-field:focus { border-color: #6366f1; background: rgba(255,255,255,0.08); }
.input-field::placeholder { color: #6b7280; }
select.input-field { color: #e2e8f0; }
select.input-field option {
  background: #0f172a;
  color: #e2e8f0;
}
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
}
.hero-gradient {
  background:
    radial-gradient(ellipse 90% 70% at 50% -5%,  rgba(99,102,241,0.55), transparent),
    radial-gradient(ellipse 60% 55% at 85% 55%,  rgba(139,92,246,0.35), transparent),
    radial-gradient(ellipse 45% 45% at 15% 85%,  rgba(56,189,248,0.20), transparent),
    #030712;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}
.hero-blob-1 {
  width: 520px; height: 520px;
  top: 5%; left: 15%;
  background: rgba(99,102,241,0.28);
}
.hero-blob-2 {
  width: 420px; height: 420px;
  bottom: 5%; right: 10%;
  background: rgba(139,92,246,0.25);
}
.hero-blob-3 {
  width: 300px; height: 300px;
  top: 50%; left: 55%;
  background: rgba(56,189,248,0.15);
}
.star { color: #facc15; }
.sale-badge {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
}
.status-badge {
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.tab-btn { 
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: none;
  color: #9ca3af;
}
.tab-btn.active, .tab-btn:hover { background: rgba(99,102,241,0.15); color: #818cf8; }
.review-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.4s ease;
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.5rem;
  max-width: 480px;
  width: 100%;
  padding: 2rem;
}
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #1f2937;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.cart-sidebar {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: 360px;
  max-width: 100vw;
  background: #111827;
  border-left: 1px solid rgba(255,255,255,0.1);
  z-index: 90;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 5rem 1.5rem 2rem;
}
.cart-sidebar.open { transform: translateX(0); }
.pulsing-dot { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── Memory Flip Card Game ──────────────────── */
.flip-card { perspective: 800px; cursor: pointer; user-select: none; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.42s ease; }
.flip-card.flipped .flip-card-inner,
.flip-card.matched .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.flip-card-back { transform: rotateY(180deg); }
.flip-card.matched .flip-card-front { box-shadow: 0 0 14px rgba(52,211,153,0.5); }

/* ── Reviews star rating ────────────────────── */
.star-rating { display:flex; gap:4px; }
.star-rating button { background:none; border:none; font-size:1.5rem; cursor:pointer; transition:transform 0.1s; line-height:1; padding:0; }
.star-rating button:hover { transform: scale(1.2); }
