@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --primary-gold: #f59e0b;
  --primary-gold-dark: #d97706;
  --amazon-dark: #131921;
  --amazon-light: #232f3e;
  --amazon-yellow: #febd69;
  --amazon-orange: #f08804;
}

body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Amazon Style Badges & Cards */
.amazon-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.amazon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.08), 0 8px 12px -4px rgba(0, 0, 0, 0.04);
}

/* Glowing Coin Animation */
@keyframes coinShine {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.5));
  }
  50% {
    transform: scale(1.1) rotate(15deg);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.9));
  }
}

.coin-animate {
  display: inline-block;
  animation: coinShine 2.5s infinite ease-in-out;
}

/* Live Pulse Indicator */
.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Cart badge bounce */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}
.cart-bump {
  animation: cartBounce 0.35s ease-out;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Modal Transitions */
.modal-enter {
  opacity: 0;
  transform: scale(0.95);
}
.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: all 0.2s ease-out;
}

/* Markdown format for Gemini output */
.gemini-output {
  line-height: 1.7;
}
.gemini-output strong {
  color: #1e293b;
}
.gemini-output ul {
  list-style-type: disc;
  padding-right: 1.25rem;
  margin: 0.5rem 0;
}
.gemini-output li {
  margin-bottom: 0.25rem;
}
