/* Lezzito Ana Stil Dosyası - Geliştirilmiş Versiyon */

/* Temel değişkenler */
:root {
  --lezzito-cream: hsl(30, 50%, 95%);
  --lezzito-orange: hsl(25, 90%, 60%);
  --lezzito-green: hsl(140, 50%, 45%);
  --lezzito-blue: hsl(200, 60%, 50%);
  --lezzito-pink: hsl(340, 70%, 55%);
  --lezzito-mint: hsl(145, 42%, 92%);
  --lezzito-red: hsl(0, 72%, 51%);
  
  /* Gölge değişkenleri */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Geçiş değişkenleri */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Tarif resmi container stili */
.recipe-image-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem; /* mb-6 eşdeğeri */
  border-radius: 0.5rem; /* rounded-lg ile uyumlu olması için */
  width: 512px; /* Genişliği 256px ile sınırla */
  height: 512px; /* Yüksekliği 256px ile sınırla */
  margin-left: auto; /* Opsiyonel - ortalamak için */
  margin-right: auto; /* Opsiyonel - ortalamak için */
}

/* Tarif resmi stili */
.recipe-image-container img {
  width: 100%; /* Container'a sığdır */
  height: 100%; /* Container'a sığdır */
  object-fit: cover; /* Resmi kırpmadan container'a sığdır */
  border-radius: 0.5rem; /* rounded-lg eşdeğeri */
  box-shadow: var(--shadow-md); /* Mevcut shadow-md değişkenini kullanır */
  display: block;
  transition: all var(--transition-normal);
}

/* Hover efekti - opsiyonel olarak ekleyebilirsiniz */
.recipe-image-container img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Sayfa temel stilleri */
body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--lezzito-cream);
  background-image: linear-gradient(to right, rgba(255,235,205,0.1), rgba(255,235,205,0.3));
  overflow-x: hidden; /* Yatay kaydırmayı engelle */
}

/* Tarif tipi arka plan renkleri - Gradient Geliştirmesi */
.recipe-type-food {
  background: linear-gradient(135deg, var(--lezzito-green), hsl(144, 50%, 40%));
  color: white;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.recipe-type-drink {
  background: linear-gradient(135deg, var(--lezzito-blue), hsl(204, 60%, 45%));
  color: white;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.recipe-type-cake, .recipe-type-dessert {
  background: linear-gradient(135deg, var(--lezzito-pink), hsl(344, 70%, 50%));
  color: white;
  box-shadow: 0 2px 4px rgba(233, 30, 99, 0.3);
}

/* Arka plan deseni - Geliştirilmiş SVG ve Parallax Efekti */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -10;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11,18 L22,18 L16,24 Z' fill='%23FF9800' opacity='0.2' transform='rotate(10 50 50)'/%3E%3Ccircle cx='40' cy='40' r='5' fill='%234CAF50' opacity='0.2' transform='rotate(10 50 50)'/%3E%3Crect x='70' y='70' width='10' height='10' rx='2' fill='%23E91E63' opacity='0.2' transform='rotate(10 50 50)'/%3E%3Cpath d='M80,20 C85,15 90,20 90,25 C90,30 85,35 80,30 C75,35 70,30 70,25 C70,20 75,15 80,20 Z' fill='%23F44336' opacity='0.2' transform='rotate(10 50 50)'/%3E%3C/svg%3E");
  animation: subtle-move 180s linear infinite;
}

/* Parallax arka plan efekti */
@keyframes subtle-move {
  0% {
      background-position: 0% 0%;
  }
  50% {
      background-position: 100% 100%;
  }
  100% {
      background-position: 0% 0%;
  }
}

/* Renkli arka plan şekilleri */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: -15;
  opacity: 0.03;
  pointer-events: none;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.bg-shape-1 {
  width: 400px;
  height: 400px;
  background-color: var(--lezzito-orange);
  top: 10%;
  left: 10%;
  animation: float-slow 20s ease-in-out infinite;
}

.bg-shape-2 {
  width: 300px;
  height: 300px;
  background-color: var(--lezzito-green);
  bottom: 5%;
  right: 10%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.bg-shape-3 {
  width: 250px;
  height: 250px;
  background-color: var(--lezzito-blue);
  top: 40%;
  right: 25%;
  animation: float-slow 25s ease-in-out infinite 5s;
}

/* Tarif kartı stilleri - Geliştirilmiş 3D ve Hover Efektleri */
.recipe-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-md);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.recipe-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.recipe-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
      45deg,
      rgba(255,235,205,0.03),
      rgba(255,235,205,0.03) 10px,
      transparent 10px,
      transparent 20px
  );
  transform: rotate(-45deg);
  z-index: -1;
  transition: all 0.5s ease;
}

.recipe-card:hover::before {
  animation: shine 1.5s infinite;
}

.recipe-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: all 0.75s ease;
}

.recipe-card:hover::after {
  animation: shine-sweep 2s infinite;
}

/* Tarif kartı animasyonları */
@keyframes shine {
  0% {
      background-position: 0% 0%;
  }
  100% {
      background-position: 100% 100%;
  }
}

@keyframes shine-sweep {
  0% {
      left: -100%;
  }
  50% {
      left: 100%;
  }
  100% {
      left: 100%;
  }
}

/* Metin kısıtlama */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Form stilleri - Geliştirilmiş Etkileşimler */
input, button, select, textarea {
  transition: all var(--transition-normal);
}

input:focus, button:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.3);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

/* Düğme hover efekti */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-hover-effect:hover::before {
  transform: translateX(0);
}

/* Animasyonlar - Geliştirilmiş ve Yeni Eklemeler */
@keyframes pulse-light {
  0% {
      box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
  }
  70% {
      box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
  }
}

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

/* Yeni eklenen animasyonlar */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeInLeft {
  from {
      opacity: 0;
      transform: translateX(-20px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out forwards;
}

@keyframes fadeInRight {
  from {
      opacity: 0;
      transform: translateX(20px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out forwards;
}

@keyframes float-slow {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-20px);
  }
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

@keyframes bounce-subtle {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

@keyframes scale-pulse {
  0%, 100% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.05);
  }
}

.animate-scale-pulse {
  animation: scale-pulse 2s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% {
      transform: translateX(0);
  }
  25% {
      transform: translateX(-5px);
  }
  50% {
      transform: translateX(5px);
  }
  75% {
      transform: translateX(-5px);
  }
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1.5s linear infinite;
}

@keyframes typing {
  from {
      width: 0;
  }
  to {
      width: 100%;
  }
}

.animate-typing {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2s steps(40, end);
}

@keyframes bg-gradient-shift {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

.animate-bg-gradient-shift {
  background-size: 200% 200%;
  animation: bg-gradient-shift 5s ease infinite;
}

/* Yükleniyor animasyonu */
.loading-animation {
  position: relative;
  width: 24px;
  height: 24px;
}

.loading-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--lezzito-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-circle:nth-child(2) {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-top-color: var(--lezzito-green);
  animation-duration: 0.8s;
  animation-direction: reverse;
}

/* Süreç adımları animasyonu */
.process-step {
  position: relative;
  transition: all 0.5s ease;
}

.process-step::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--lezzito-orange);
  transition: width 0.5s ease;
}

.process-step:hover::after,
.process-step.active::after {
  width: 100%;
}

.process-step.active {
  transform: translateY(-5px);
}

/* İnteraktif butonlar için gelişmiş stiller */
.btn-3d {
  position: relative;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  transform: perspective(800px);
}

.btn-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lezzito-orange);
  opacity: 0.6;
  transform: translateZ(-10px);
  filter: blur(10px);
  z-index: -1;
  transition: all 0.3s ease;
}

.btn-3d:hover {
  transform: perspective(800px) translateZ(10px);
}

.btn-3d:hover::before {
  opacity: 0.8;
  transform: translateZ(-15px);
}

.btn-3d:active {
  transform: perspective(800px) translateZ(5px);
}

/* Responsive ayarlar - Geliştirilmiş */
@media (max-width: 640px) {
  .container {
      padding-left: 1rem;
      padding-right: 1rem;
  }
  
  .loading-animation {
      width: 20px;
      height: 20px;
  }
  
  /* Mobil için özel animasyon ayarları */
  .animate-fadeInUp,
  .animate-fadeInLeft,
  .animate-fadeInRight {
      animation-duration: 0.4s;
  }
  
  /* Mobil cihazlarda daha hafif animasyonlar */
  @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
          scroll-behavior: auto !important;
      }
  }
}

/* Bu renk tonları ile ilgili genel yardımcı sınıflar */
.text-lezzito-orange {
  color: var(--lezzito-orange);
}

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

.bg-lezzito-orange-gradient {
  background: linear-gradient(135deg, var(--lezzito-orange), hsl(25, 90%, 55%));
}

.border-lezzito-orange {
  border-color: var(--lezzito-orange);
}

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

/* Cam efekti sınıfları */
.glass-effect {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-effect-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Resim parlaklık efekti */
.img-hover-brightness {
  transition: filter var(--transition-normal);
}

.img-hover-brightness:hover {
  filter: brightness(1.1);
}

/* Lucide ikonları için yardımcı stil */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

/* İkon animasyonları */
.icon-spin:hover [data-lucide] {
  animation: spin 2s linear infinite;
}

.icon-pulse:hover [data-lucide] {
  animation: scale-pulse 1s ease-in-out infinite;
}

.icon-bounce:hover [data-lucide] {
  animation: bounce-subtle 1s ease-in-out;
}

/* Animasyon gecikmeleri için yardımcı sınıflar */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* Sayfa içeriği için geliştirilmiş kaydırma animasyonu */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sayfa içeriği için geliştirilmiş kaydırma animasyonu (Alternatif) */
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Sayfa kaydırma çubuğu stil */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb {
  background-color: var(--lezzito-orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(25, 90%, 55%);
}