@import url('./logo-style.css');

/* Genel Ayarlar */
:root {
  --primary: #fb923c;
  --light-bg: #fefaf6;
  --dark-text: #1f2937;
  --muted-text: #6b7280;
  --card-radius: 1rem;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
  color: var(--dark-text);
}

.dark body {
  background-color: #111;
  color: #eee;
}

.dark .item-card {
  background-color: #1a1a1a;
  color: #eee;
}

.dark .category-button {
  background-color: #333;
  color: #fff;
  border-color: #666;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Başlıklar */
h1, h2, h3, h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 0.5rem;
}

/* HEADER */
header {
  background-color: #fff;
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}


.logo {
  height: 72px;
  width: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  background-color: #fff;
}

.logo:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  filter: brightness(1.1);
}

.site-intro {
  text-align: center;
  margin-top: 0.5rem;
}
.brand-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}
.brand-subtitle {
  font-size: 1rem;
  color: #888;
  margin-top: 0.25rem;
}

.site-header-logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.site-header-logo-group .site-texts h1 {
  font-size: 1.5rem;
  margin: 0;
}
.site-header-logo-group .site-texts p {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

.brand-title {
  font-family: 'Pacifico', cursive;
  font-size: 2.25rem;
  font-weight: 400;
  color: #1f2937;
  margin: 0;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-family: 'Inter', sans-serif;
}


.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Butonlar */
button,
.lang-toggle {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.lang-toggle {
  border: 1px solid var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}

.lang-toggle:hover,
.lang-toggle.active {
  background: var(--primary);
  color: #fff;
}

#theme-toggle,
#open-favorites-button,
#menu-toggle {
  font-size: 1.2rem;
  background: none;
  border: none;
}


/* Hamburger butonu */

.hamburger-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1000;
}

.hamburger-menu.show {
  right: 0;
}

.hamburger-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 26px;
  border: none;
  background: none;
  cursor: pointer;
}


#menu-toggle {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #333;
  transition: transform 0.3s ease;
}

#menu-toggle:hover {
  transform: scale(1.2);
}

/* Menü paneli */
.hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
  padding: 24px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.hamburger-menu.show {
  display: block;
}

.menu-section {
  margin-bottom: 30px;
}

.menu-section h4 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
}

.lang-buttons button,
#theme-toggle,
#open-favorites-button {
  margin-right: 10px;
  margin-bottom: 6px;
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background-color: #eee;
  cursor: pointer;
}

.rating-stars .star {
  font-size: 20px;
  margin-right: 4px;
  cursor: pointer;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a svg {
  width: 24px;
  height: 24px;
  fill: #333;
  transition: fill 0.3s;
}

.social-icons a:hover svg {
  fill: #ff4081;
}

/* Menü başlığı */
.hamburger-menu h2 {
  font-family: 'Pacifico', cursive;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #ff7f00;
  text-align: center;
}

/* Her bölüm */
.hamburger-menu .menu-section {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.hamburger-menu .menu-section h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #222;
}

.hamburger-menu button,
.hamburger-menu .lang-toggle {
  display: block;
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.4rem;
  border: none;
  background: #f3f3f3;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.hamburger-menu button:hover {
  background: #ffecd3;
}

/* Sosyal ikonlar */
.hamburger-menu .social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.hamburger-menu .social-icons a svg {
  width: 22px;
  height: 22px;
  fill: #333;
  transition: fill 0.2s ease;
}

.hamburger-menu .social-icons a:hover svg {
  fill: #ff7f00;
}

/* Responsive düzeltmeler */
@media (max-width: 768px) {
  .hamburger-menu {
    width: 85%;
  }
}


/* NAVIGATION */
#main-nav {
  width: 100%;
}

#main-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.category-button {
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  border-radius: 9999px;
  font-weight: 600;
  border: 1px solid var(--primary);
  color: var(--primary);
  transition: 0.2s;
}
.category-button:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Arama */
.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}
.search-bar input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
}
.search-bar button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
}

/* Menü Grid */
#menu-content section {
  margin-bottom: 2.5rem;
}
#menu-content section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch; /* önemli */
}


/* Ürün Kartları */
.item-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background-color: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

.item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.item-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}
.item-card .content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.item-card .content h3 {
  font-size: 1.2rem;
  font-weight: bold;
}
.item-card .content p {
  color: var(--primary);
  font-weight: 600;
  margin: 0.5rem 0 0 0;
}

/* Modal */
#product-modal-overlay,
#favorites-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#product-modal-overlay.show,
#favorites-modal-overlay.show {
  display: flex;
}
#product-modal-content,
#favorites-modal-content {
  background: #fff;
  border-radius: var(--card-radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
}
#close-modal-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}

#close-modal-button:hover {
  transform: scale(1.1);
  background-color: #fdd;
  color: #c00;
}
#add-to-favorites-button {
  background-color: #ff6b81;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

#add-to-favorites-button:hover {
  background-color: #ff4d6d;
}

#toast-message {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background-color: #28a745;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  z-index: 9999;
}

#toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

.remove-favorite-btn {
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  margin-top: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.remove-favorite-btn:hover {
  background-color: #e60000;
}


#close-modal-button,
#close-favorites-modal-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
}
.modal-section {
  margin-top: 1rem;
}
.modal-section h3,
.modal-section h4 {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.modal-section p {
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
footer {
  margin-top: 3rem;
  border-top: 1px solid #eee;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Mobil Tasarım */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
    #product-modal-content,
  #favorites-modal-content {
    width: 95%;
    padding: 1rem;
  }

  #close-modal-button,
  #close-favorites-modal-button {
    font-size: 1.25rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .modal-section h4 {
    font-size: 0.95rem;
  }

  .modal-section p {
    font-size: 0.9rem;
  }

  .controls {
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .logo {
    height: 64px;
    width: 64px;
  }

  .site-intro {
    margin-top: 0.5rem;
  }

  .brand-title {
    font-size: 1.75rem;
  }

  .brand-subtitle {
    font-size: 0.95rem;
  }
    .item-card {
    border-radius: 0.75rem;
  }

  .item-card img {
    height: 140px;
    border-bottom: 1px solid #eee;
  }

  .item-card .content h3 {
    font-size: 1rem;
  }

  .item-card .content p {
    font-size: 0.9rem;
  }
}


#modal-product-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

#modal-product-image:hover {
  transform: scale(1.02);
}

#news-section {
  background-color: #f9f9f9;
  padding: 2rem 1rem 1rem;
  border-bottom: 1px solid #eee;
}

.section-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background-color: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.news-content {
  padding: 1rem;
}

.news-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.news-content p {
  font-size: 0.95rem;
  color: #444;
}

.news-date {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
  display: block;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer-social img {
  width: 22px;
  height: 22px;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.footer-social-icons .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-social-icons .icon:hover {
  transform: scale(1.15);
  background-color: #f3f4f6;
}

.footer-social-icons svg {
  width: 24px;
  height: 24px;
  fill: #111;
}

.working-hours {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: #444;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.working-hours .clock-icon {
  font-size: 1.25rem;
}

.working-hours-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: #fef9f5;
  color: #fb923c;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid #f3f3f3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
}

.working-hours-top .clock-icon {
  font-size: 1.2rem;
}

.working-hours-top .working-text {
  display: inline-block;
  max-width: 100%;
}


.working-hours-top strong {
  font-weight: 600;
  color: #000;
}

.dark .working-hours-top strong {
  color: #000000;
}

.rating-stars {
  display: flex;
  gap: 4px;
  cursor: pointer;
}

.rating-stars .star {
  font-size: 24px;
  color: #ccc;
  transition: color 0.3s;
}

.rating-stars .star.voted {
  color: #f39c12;
}

.rating-display {
  margin-top: 6px;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.vote-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.vote-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.vote-toast.success {
  background-color: #2ecc71;
}

.vote-toast.warning {
  background-color: #e67e22;
}

.vote-toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

.star {
  font-size: 24px;
  cursor: pointer;
  color: #ccc; /* gri */
  transition: color 0.3s ease;
}

.star.filled {
  color: #FFD700; /* sarı */
}
