/* QR Menü - Ana Sayfa Stilleri */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-effect {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-bg {
  /* Kahve ve tatlı tonlarına yakın sıcak bir gradient */
  background: linear-gradient(135deg, #a1887f 0%, #795548 100%);
}

.dark .gradient-bg {
  background: linear-gradient(135deg, #4b3832 0%, #2d201c 50%, #1a1412 100%);
}

.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark .card:hover {
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.category-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.category-btn:hover::before {
  left: 100%;
}

.category-btn.active {
  background: linear-gradient(135deg, #8d6e63 0%, #5d4037 100%);
  color: white;
  transform: scale(1.05);
}

.dark .category-btn.active {
  background: linear-gradient(135deg, #795548 0%, #4e342e 100%);
}

/* Kategori Kartları - Şık Tasarım */
.category-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Modal Animasyonları */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-open {
  animation: modalFadeIn 0.3s ease-out;
}

/* Modal scroll için */
#productsModal .overflow-y-auto::-webkit-scrollbar {
  width: 8px;
}

#productsModal .overflow-y-auto::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#productsModal .overflow-y-auto::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

#productsModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.dark #productsModal .overflow-y-auto::-webkit-scrollbar-track {
  background: #1f2937;
}

.dark #productsModal .overflow-y-auto::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.dark #productsModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

.floating-action {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hamburger {
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.hamburger span {
  background: currentColor;
  position: absolute;
  border-radius: 2px;
  width: 100%;
  height: 3px;
  transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 7.5px; }
.hamburger span:nth-child(3) { top: 15px; }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 7.5px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 7.5px;
}

.language-selector {
  position: relative;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dark .language-dropdown {
  background: #1f2937;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.language-selector:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Kategori butonları scroll bar'ını gizle */
.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #8d6e63; /* Ana renge uygun */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.dark .skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Parallax Effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Gradient Animation */
.animated-gradient {
  background: linear-gradient(-45deg, #a1887f, #795548, #d7ccc8, #bcaaa4);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Micro-interactions */
.micro-hover {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.micro-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive Typography */
.responsive-text {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
}

.responsive-heading {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
}

/* Improved Card Hover Effects */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
}

.card-hover:hover::before {
  left: 100%;
}

.card-hover:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Floating Animation for Buttons */
.floating-btn {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1deg); }
  75% { transform: translateY(-4px) rotate(-1deg); }
}

/* Pulse Animation for Important Elements */
.pulse-important {
  animation: pulse-important 2s infinite;
}

@keyframes pulse-important {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Better Mobile Responsiveness */
@media (max-width: 640px) {
  .mobile-optimized {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .mobile-text {
    font-size: 0.875rem;
    line-height: 1.4;
  }
  
  .mobile-spacing {
    gap: 0.75rem;
    margin: 0.75rem 0;
  }
}

/* Tablet Optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
  .tablet-optimized {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* Large Screen Enhancements */
@media (min-width: 1025px) {
  .desktop-enhanced {
    padding: 2rem;
    margin: 1.5rem;
  }
}

