/* QR Menü Sistemi - Frontend Stil Dosyası */

/* Genel Stiller */
body {
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8f9fa;
  color: #333;
}

main {
  flex: 1;
}

header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: top 0.6s; /* Animasyonlu geçiş */
}


header.bg-dark {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}


.logo {
  max-height: 100px;
  transition: all 0.3s ease;
}


/* Tooltip Yazı Efekti */
.product-image-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* biraz daha şeffaf */
    color: #333; /* daha yumuşak koyulukta yazı */
    font-size: 0.8rem;
    font-weight: 500; /* biraz kalın ama çok değil */
    padding: 6px 0;
    border-radius: 0;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    text-align: center;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* daha hafif gölge */
}


/* Başlık Stilleri */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  border-radius: 2px;
}

/* Kategori Kartları */
.category-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-card .card-img-top {
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .card-img-top {
  transform: scale(1.05);
}

.category-card .card-body {
  padding: 1.5rem;
}

.category-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* Ürün Kartları */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.product-card .card-body {
  padding: 1.5rem;
}

.product-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.object-fit-cover {
  object-fit: cover;
}

/* Kampanya Kartları */
.campaign-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.campaign-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

/* Garson Çağrı Butonu */
#callWaiter {
  transition: all 0.3s ease;
}

#callWaiter:hover {
  transform: scale(1.05);
}

#callWaiter:active {
  transform: scale(0.95);
}

/* Sabit Butonlar */

/* Sosyal ikonlar kutusu */
.floating-social {
  position: absolute;
  left: 15px;
  bottom: 70px;  /* Wifi butonunun biraz üstü, wifi boyutuna dokunma */
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  z-index: 1000;
}

/* Sosyal ikonlar */
.floating-social {
  position: absolute;
  left: 15px;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  z-index: 1000;
  transform: translateX(2px); /* Hafif sağa kaydırma */
}


.floating-social .social {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #555;
  background-color: #f0f0f0;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.floating-social .social:hover {
  background-color: #007bff;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* İkon renkleri */
.floating-social .facebook {
  background-color: #3b5998;
  color: white;
}

.floating-social .instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
}

.floating-social .tiktok {
  background-color: #000000; /* Siyah ana renk */
  color: white;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.floating-social .tiktok:hover {
  background-color: #383E42;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}






.floating-buttons {
  position: fixed;
  bottom: 20px;
  width: 100%;
  z-index: 999;
  pointer-events: none;
}

.floating-buttons .container {
  position: relative;
  pointer-events: none;
}

.floating-button {
  pointer-events: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.floating-button:hover {
  transform: scale(1.1);
}

.floating-button i {
  font-size: 1.5rem;
}

.floating-button.waiter {
  position: absolute;
  right: 15px;
  bottom: 0;
}

.floating-button.wifi {
  position: absolute;
  left: 15px;
  bottom: 0;
}

/* Footer Stilleri */
footer {
  background-color: #212529;
  color: #fff;
  padding: 2rem 0;
  margin-top: 4rem;
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Animasyonlar */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-item,
.product-item {
  animation: fadeIn 0.5s ease forwards;
  animation-delay: calc(var(--animation-order) * 0.1s);
}

/* Tembel Yükleme */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Duyarlı Tasarım Ayarlamaları */
@media (max-width: 767.98px) {
  .category-card .card-img-top {
    height: 140px;
  }

  .campaign-card .card-img-top {
    height: 140px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .col-8 {
    flex: 0 0 100% !important;  /* Genişliği %100 yap */
    max-width: 100% !important;
    text-align: center;          /* İçeriği ortala */
  }

  .col-8 a {
    display: inline-block;       /* Link bloğu küçült */
  }

  .logo {
    max-height: 100px;
    max-width: 100%;
    display: inline-block;
  }
}

  .floating-button {
    width: 50px;
    height: 50px;
  }

  .floating-button i {
    font-size: 1.2rem;
  }

@media (max-width: 575.98px) {
  .category-card .card-title {
    font-size: 1rem;
  }

  .product-card .card-title {
    font-size: 1rem;
  }
}
