/* რესტორნების ბარათების სუფთა სტილები */

/* კონტეინერი */
.restaurant-carousel {
  position: relative;
  margin: 56px 0;
  padding: 48px 24px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.04) 0%, 
    rgba(147, 51, 234, 0.03) 25%,
    rgba(20, 184, 166, 0.03) 50%,
    rgba(245, 158, 11, 0.04) 100%);
  border-radius: var(--border-radius-xl);
  overflow: visible;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.restaurant-track {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 0;
  align-items: center;
  max-width: 100%;
}

/* ძირითადი ბარათი */
.restaurant-card {
  position: relative !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  border-radius: calc(var(--border-radius-xl) + 4px) !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.96) 50%,
    rgba(255, 255, 255, 0.98) 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.15) !important;
  box-shadow: 
    0 32px 80px rgba(15, 23, 42, 0.08),
    0 8px 32px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.6) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(12px) !important;
}

.restaurant-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(14, 165, 233, 0.12) 45%,
    rgba(34, 197, 94, 0.12) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.restaurant-card:hover {
  transform: translateY(-12px) scale(1.01) !important;
  box-shadow: 
    0 48px 100px rgba(15, 23, 42, 0.12),
    0 16px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

.restaurant-card:hover::before {
  opacity: 1;
}

/* სურათი */
.restaurant-card > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(220px, 32vw, 320px);
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.restaurant-card:hover > img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* სარეზერვო კავერი */
.restaurant-card > .restaurant-cover-fallback {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(220px, 32vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top,
    rgba(59, 130, 246, 0.25) 0%,
    rgba(14, 165, 233, 0.2) 50%,
    rgba(248, 250, 252, 0.9) 100%);
  color: var(--primary-color);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.restaurant-card:hover > .restaurant-cover-fallback {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.restaurant-cover-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
  pointer-events: none;
  animation: lightSweep 6s ease-in-out infinite alternate;
}

.restaurant-card:hover .restaurant-cover-fallback::after {
  opacity: 1;
}

/* ბარათის შინაარსი */
.restaurant-card .card-body {
  position: relative;
  z-index: 1;
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.96) 100%);
  backdrop-filter: blur(16px);
}

/* პარტნიორი რესტორნები */
.restaurant-card.partner {
  border-color: rgba(168, 85, 247, 0.35) !important;
  box-shadow: 
    0 36px 90px rgba(147, 51, 234, 0.15),
    0 12px 36px rgba(168, 85, 247, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 255, 0.96) 50%,
    rgba(252, 248, 255, 0.98) 100%) !important;
}

.restaurant-card.partner::before {
  background: linear-gradient(135deg,
    rgba(168, 85, 247, 0.15) 0%,
    rgba(99, 102, 241, 0.12) 35%,
    rgba(59, 130, 246, 0.10) 100%) !important;
}

.restaurant-card.partner:hover {
  border-color: rgba(168, 85, 247, 0.5) !important;
  transform: translateY(-16px) scale(1.02) !important;
  box-shadow: 
    0 56px 120px rgba(147, 51, 234, 0.18),
    0 20px 50px rgba(168, 85, 247, 0.12),
    0 0 0 1px rgba(168, 85, 247, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.restaurant-badge.partner {
  background: linear-gradient(135deg, 
    #a855f7 0%, 
    #8b5cf6 25%, 
    #6366f1 75%, 
    #4f46e5 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 
    0 8px 24px rgba(168, 85, 247, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  font-weight: 700 !important;
}

/* ტელეფონის ლინკები */
.restaurant-phone {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: var(--font-semibold) !important;
}

.restaurant-phone:hover,
.restaurant-phone:focus {
  color: var(--primary-color) !important;
  text-decoration: underline !important;
}

/* ელეგანტური subtitle სტილი */
.elegant-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0 0 40px;
  padding: 32px 24px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 255, 0.9) 50%,
    rgba(252, 248, 255, 0.95) 100%);
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: calc(var(--border-radius-xl) + 8px);
  box-shadow: 
    0 16px 48px rgba(59, 130, 246, 0.06),
    0 8px 24px rgba(147, 51, 234, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.elegant-subtitle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.6) 25%,
    rgba(147, 51, 234, 0.8) 50%,
    rgba(59, 130, 246, 0.6) 75%,
    transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

.subtitle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    var(--secondary-color) 100%);
  border-radius: 50%;
  color: white;
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.25),
    0 4px 12px rgba(147, 51, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: float 4s ease-in-out infinite;
}

.elegant-subtitle h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  text-align: center;
  color: var(--gray-800);
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.4;
  background: linear-gradient(135deg, 
    var(--gray-800) 0%,
    var(--primary-color) 50%,
    var(--secondary-color) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  max-width: 600px;
}

.subtitle-decoration {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    var(--secondary-color) 100%);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  animation: expand 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0%, 100% {
    left: -50%;
  }
  50% {
    left: 50%;
  }
}

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

@keyframes expand {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1.2);
  }
}

/* მობაილური ვერსია */
@media (max-width: 768px) {
  .restaurant-carousel {
    margin: 40px 0;
    padding: 32px 16px;
  }
  
  .restaurant-track {
    gap: 32px;
  }
  
  .restaurant-card {
    max-width: 100% !important;
    margin: 0 8px !important;
  }
  
  .restaurant-card .card-body {
    padding: 28px 24px !important;
  }
  
  .restaurant-card:hover {
    transform: translateY(-8px) scale(1.005) !important;
  }
  
  .restaurant-card.partner:hover {
    transform: translateY(-10px) scale(1.01) !important;
  }
  
  .elegant-subtitle {
    margin: 0 0 30px;
    padding: 24px 20px;
    gap: 16px;
  }
  
  .subtitle-icon {
    width: 48px;
    height: 48px;
  }
  
  .elegant-subtitle h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }
}

@media (max-width: 360px) {
  .restaurant-carousel {
    padding: 24px 12px;
  }
  
  .restaurant-card {
    margin: 0 4px !important;
  }
  
  .restaurant-card .card-body {
    padding: 24px 20px !important;
    gap: 16px !important;
  }
  
  .elegant-subtitle {
    margin: 0 0 24px;
    padding: 20px 16px;
    gap: 12px;
  }
  
  .subtitle-icon {
    width: 40px;
    height: 40px;
  }
  
  .elegant-subtitle h2 {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    line-height: 1.3;
  }
  
  .subtitle-decoration {
    width: 60px;
    height: 2px;
  }
}

/* ელეგანტური სექციების გამყოფი */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 80px 0 60px;
  padding: 0 40px;
  position: relative;
}

.separator-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(59, 130, 246, 0.3) 20%,
    rgba(147, 51, 234, 0.4) 50%,
    rgba(59, 130, 246, 0.3) 80%,
    transparent 100%);
  position: relative;
  border-radius: 2px;
}

.separator-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.separator-line:first-child .separator-dot {
  right: 20px;
}

.separator-line:last-child .separator-dot {
  left: 20px;
  right: auto;
}

.separator-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 255, 0.9) 100%);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 50%;
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.08),
    0 4px 16px rgba(147, 51, 234, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.separator-content:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(59, 130, 246, 0.12),
    0 6px 20px rgba(147, 51, 234, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(147, 51, 234, 0.3);
}

.separator-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  color: white;
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: rotate 6s linear infinite;
}



@keyframes pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-50%) scale(1.2);
    opacity: 0.7;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* მობაილური ვერსია */
@media (max-width: 768px) {
  .section-separator {
    margin: 60px 0 40px;
    padding: 0 20px;
  }
  
  .separator-content {
    padding: 16px 24px;
    gap: 12px;
  }
  
  .separator-icon {
    width: 32px;
    height: 32px;
  }
  

  
  .separator-dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .section-separator {
    margin: 40px 0 30px;
    padding: 0 16px;
  }
  
  .separator-content {
    padding: 12px 20px;
    gap: 8px;
  }
  

}