@import "tailwindcss";
@import 'fonts/vazirmatn-font-face.css';
@import 'fonts/vazirmatn-fd-font-face.css';

:root {
  --container-max-width: 1200px;
  --primary-muted: #5C677E;
  --primary-default: #081F3C;
  --primary-second: #1B1139;
  --primary-pink: #E83388;
  --primary-blue: #2B73E3;
  --border-primary: #F3F3F3;
  --border-default: #F3F4FE;
  --border-second: #E5E7EB;
  --bg-primary: #F9FAFF;
  --bg-default: #081F3C;
  --bg-second: #EAF1FC;
}

body {
  font-family: 'Vazirmatn';
  font-weight: normal;
  color: var(--primary-default);
  background-color: var(--bg-primary);
}

.farsi-digit {
  font-family: 'VazirmatnFD'
}

.ltr {
  direction: ltr;
}

.text-muted {
  color: var(--primary-muted);
}

.text-second {
  color: var(--primary-second);
}

.border-primary {
  border-color: var(--border-primary);
}

.border-default {
  border-color: var(--border-default);
}

.border-second {
  border-color: var(--border-second);
}

.bg-primary {
  background-color: var(--bg-primary);
}

.bg-primary-blue {
  background-color: var(--primary-blue);
}

.bg-primary-pink {
  background-color: var(--primary-pink);
}

.bg-default {
  background-color: var(--bg-default);
}

.bg-second {
  background-color: var(--bg-second);
}

.text-primary-pink {
  color: var(--primary-pink);
}

.text-primary-blue {
  color: var(--primary-blue);
}

.container-custom {
  max-width: var(--container-max-width);
}

.slider {
  background: linear-gradient(to right, #ec4899 0%, #ec4899 20%, #e5e7eb 20%, #e5e7eb 100%);
  direction: rtl;
  transform: scaleX(-1);
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ec4899;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: scaleX(-1);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ec4899;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: scaleX(-1);
}

.slider::-webkit-slider-track {
  background: #e5e7eb;
  height: 12px;
  border-radius: 6px;
}

.slider::-moz-range-track {
  background: #e5e7eb;
  height: 12px;
  border-radius: 6px;
  border: none;
}

.slider::-webkit-slider-runnable-track {
  background: #e5e7eb;
  height: 12px;
  border-radius: 6px;
}

.slider-new {
  height: 12px;
  direction: rtl;
  -webkit-appearance: none;
  appearance: none;
  background: var(--slider-gradient, #e5e7eb);
  border-radius: 9999px;
}

/* WebKit thumb */
.slider-new::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  /* size-2 */
  height: 8px;
  border-radius: 9999px;
  background: var(--primary-pink);
  border: 4px solid #ffffff;
  /* white ring */
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 150ms ease;
}

.slider-new:hover::-webkit-slider-thumb {
  transform: scale(1.1);
}

/* Firefox thumb */
.slider-new::-moz-range-thumb {
  width: 8px;
  /* size-2 */
  height: 8px;
  border-radius: 9999px;
  background: var(--primary-pink);
  border: 8px solid #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 150ms ease;
}

.slider-new:hover::-moz-range-thumb {
  transform: scale(1.1);
}

/* Tracks */
.slider-new::-webkit-slider-track {
  background: var(--slider-gradient, #e5e7eb);
  height: 12px;
  border-radius: 9999px;
}

.slider-new::-webkit-slider-runnable-track {
  background: var(--slider-gradient, #e5e7eb);
  height: 12px;
  border-radius: 9999px;
}

.slider-new::-moz-range-track {
  background: var(--slider-gradient, #e5e7eb);
  height: 12px;
  border-radius: 9999px;
  border: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
}

.header-diagonal-left {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(0, 0, 0, 0.15) 100%);
  filter: blur(60px);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.animate-pulse-slow {
  animation: pulse 2s infinite;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-top: #fff 1px solid;
  padding: 12px 16px;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: block;
  }

  body {
    padding-bottom: 80px;
  }
}

.app-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
}

.app-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 584px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}

.vendors-carousel {
  margin: 0;
  position: relative;
  padding-bottom: 64px;
}

.vendors-item {
  padding: 22px 0;
}

.vendors-carousel .slick-prev,
.vendors-carousel .slick-next {
  z-index: 10;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 50%;
  border: 1px solid #A4AFB7;
  transition: all 0.3s ease;
}

.vendors-carousel .slick-prev {
  left: -20px;
}

.vendors-carousel .slick-next {
  right: -20px;
}

.vendors-carousel .slick-prev:before,
.vendors-carousel .slick-next:before {
  font-size: 18px;
  color: var(--primary-default);
  opacity: 1;
}

.tab-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.tab-panel.active {
  opacity: 1;
  pointer-events: auto;
}

.tabs-wrapper {
  position: relative;
  min-height: 220px;
}

@media (max-width: 768px) {
  .tab-panel {
    position: static;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    transition: none;
    display: none;
  }

  .tab-panel.active {
    display: block;
  }

  /* Make tab items full width on mobile */
  .rtl-cards>div {
    width: 100% !important;
    max-width: none !important;
  }

  /* Place carousel arrows at bottom, hide dots */
  .vendors-carousel .slick-dots {
    display: none !important;
  }

  .vendors-carousel .slick-prev,
  .vendors-carousel .slick-next {
    top: auto !important;
    bottom: -16px !important;
  }

  .vendors-carousel .slick-prev {
    left: calc(50% - 56px) !important;
    right: auto !important;
  }

  .vendors-carousel .slick-next {
    left: calc(50% + 8px) !important;
    right: auto !important;
  }

  /* Slightly smaller typography on mobile */
  html {
    font-size: 16px;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .text-lg {
    font-size: 1rem !important;
  }

  .text-xl {
    font-size: 1.125rem !important;
  }

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

  .text-3xl {
    font-size: 1.5rem !important;
  }

  .text-5xl {
    font-size: 2.5rem !important;
  }
}
