@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700&display=swap');

:root {
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --amber-400: #fbbf24;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Language switcher - dark theme */
.lang-dropdown { position: relative; }
.lang-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 160px;
  z-index: 50;
}
[dir="rtl"] .lang-dropdown-menu { right: auto; left: 0; }
.lang-dropdown.open .lang-dropdown-menu { display: block; }

/* Product cards - dark theme */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
  border-color: rgba(249, 115, 22, 0.5);
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
}
[dir="rtl"] .discount-badge { left: auto; right: 8px; }

/* Rating stars */
.star-filled { color: #fbbf24; }
.star-empty { color: #4b5563; }

/* Filter buttons - dark theme */
.filter-btn {
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn.active {
  background-color: var(--green-500) !important;
  color: white !important;
  border-color: var(--green-500) !important;
}
.filter-btn:hover:not(.active) {
  border-color: var(--green-500);
  color: var(--green-400);
}

/* Telegram CTA sticky */
.telegram-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.telegram-sticky.visible { transform: translateY(0); }

@media (min-width: 768px) {
  .telegram-sticky { display: none; }
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Blog post content - dark theme */
.blog-content h2 { margin-top: 2rem; margin-bottom: 1rem; color: white; }
.blog-content p { margin-bottom: 1rem; line-height: 1.75; color: #9ca3af; }
.blog-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
[dir="rtl"] .blog-content ul { padding-left: 0; padding-right: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; color: #9ca3af; }

/* Navigation active - orange theme */
.nav-link.active { color: var(--green-500); font-weight: 600; }

/* Breadcrumbs */
.breadcrumb-separator::before { content: '/'; margin: 0 0.5rem; color: #6b7280; }
[dir="rtl"] .breadcrumb-separator::before { content: '\'; }

/* Custom scrollbar for dark theme */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* Selection color */
::selection {
  background-color: rgba(249, 115, 22, 0.3);
  color: white;
}

/* Print */
@media print {
  .telegram-sticky, .telegram-cta, nav, .lang-dropdown, footer { display: none !important; }
  body { background: white !important; color: black !important; }
}
