/* Auto Bazar Syria - Custom Styles */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in.visible:nth-child(2) { transition-delay: 0.1s; }
.fade-in.visible:nth-child(3) { transition-delay: 0.2s; }
.fade-in.visible:nth-child(4) { transition-delay: 0.3s; }

/* Glass morphism */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Button hover glow */
.btn-glow {
  transition: all 0.3s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 24px rgba(5, 150, 105, 0.35);
  transform: translateY(-2px);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #34d399, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hamburger menu animation */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-menu.open {
  max-height: 320px;
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-item.active .accordion-content {
  max-height: 400px;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}
.accordion-icon {
  transition: transform 0.3s ease;
}

/* Checkmark animation for confirm page */
@keyframes checkmark-draw {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}
@keyframes circle-fill {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.checkmark-circle {
  animation: circle-fill 0.6s ease forwards;
}
.checkmark-check {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmark-draw 0.5s 0.4s ease forwards;
}

/* Pulse animation for stats */
@keyframes pulse-slow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.pulse-slow:hover {
  animation: pulse-slow 1.5s ease infinite;
}

/* Legal page styles */
.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: #059669;
}
.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #374151;
}
.legal-content ul {
  list-style: disc;
  padding-inline-start: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content ul li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
  color: #374151;
}

/* Arabic section styling */
.legal-content[dir="rtl"] h2,
.legal-content[dir="rtl"] h3 {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

/* Stat counter */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Hero pattern overlay */
.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(52, 211, 153, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(5, 150, 105, 0.06) 0%, transparent 50%);
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Language toggle button */
.lang-toggle {
  cursor: pointer;
  border: none;
  font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
  white-space: nowrap;
}

/* RTL adjustments */
[dir="rtl"] .hamburger {
  order: -1;
}

[dir="rtl"] .legal-content ul {
  padding-inline-start: 1.5rem;
  padding-inline-end: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
