/* ========== Theme System With Root ========== */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.98);
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --dropdown-bg: #ffffff;
  --hover-bg: #fff7ed;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body.dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-header: rgba(15, 23, 42, 0.98);
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --border-light: #1e293b;
  --dropdown-bg: #1e293b;
  --hover-bg: rgba(255, 107, 0, 0.1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

* {
  font-family: "Vazirmatn FD NL", "Vazirmatn", system-ui, sans-serif;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 107, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 20px rgba(255, 107, 0, 0.8),
      0 0 10px rgba(232, 62, 140, 0.5);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ringBell {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30% {
    transform: rotate(-10deg);
  }
  20%,
  40% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  60% {
    transform: rotate(5deg);
  }
  70% {
    transform: rotate(0deg);
  }
}

.bell-animation {
  animation: ringBell 3s ease-in-out infinite;
  transform-origin: top center;
  display: inline-block;
}

@keyframes fadeInItem {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-item-animate {
  animation: fadeInItem 0.4s ease-out forwards;
  opacity: 0;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

.menu-slide {
  animation: slideIn 0.3s ease-out;
}

.theme-transition {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Icon Rotation */
.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.chevron-icon {
  transition: transform 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.bg-white\/95 {
  background-color: var(--bg-header) !important;
  backdrop-filter: blur(12px);
}

.rounded-xl,
.rounded-2xl {
  box-shadow: var(--shadow-sm);
}

.dropdown-panel {
  background-color: var(--dropdown-bg) !important;
  border-color: var(--border-color) !important;
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(135deg, #ff6b00, #e83e8c);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

.dropdown-item:hover {
  transform: translateX(-5px);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.05),
    rgba(232, 62, 140, 0.05)
  ) !important;
}

/* Mobile Menu */
#mobileMenu {
  background-color: var(--bg-header) !important;
  backdrop-filter: blur(12px);
}

.hover\:bg-gray-50:hover {
  background-color: var(--hover-bg) !important;
}

.border-gray-200,
.border-gray-100 {
  border-color: var(--border-color) !important;
}

.text-gray-700,
.text-gray-800,
.text-gray-900 {
  color: var(--text-primary) !important;
}

.text-gray-500,
.text-gray-400 {
  color: var(--text-muted) !important;
}

.text-gray-600 {
  color: var(--text-secondary) !important;
}

.bg-gray-50,
.bg-white {
  background-color: var(--bg-card) !important;
}

nav a,
.mobile-dropdown-btn {
  transition: all 0.2s ease;
}

nav a:hover,
.mobile-dropdown-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.08),
    rgba(232, 62, 140, 0.08)
  );
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff6b00, #e83e8c);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #e83e8c, #6c2bd9);
}
