/* FixDöner QR Menü - Temel CSS */

:root {
  --primary-color: #e74c3c;
  --secondary-color: #34495e;
  --background-color: #f8f9fa;
  --text-color: #333;
  --light-gray: #e9ecef;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

#app {
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  height: 40px;
}

.language-selector select {
  padding: 8px;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  background-color: white;
}

/* Ana Navigasyon */
.page-navigation {
  background-color: var(--secondary-color);
  padding: 8px;
  position: sticky;
  top: 70px;
  z-index: 99;
  box-shadow: var(--box-shadow);
}

.page-navigation ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
  margin: 0;
}

.page-navigation .nav-link {
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  font-size: 0.9rem;
}

.page-navigation .nav-link i {
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.page-navigation .nav-link.active {
  color: var(--primary-color);
}

/* Stories Bölümü */
.stories-container {
  padding: 15px;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 10px;
  background-color: white;
  margin-bottom: 15px;
}

.story-item {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary-color);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.story-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.story-header {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  color: white;
}

.story-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.story-close {
  font-size: 2rem;
  cursor: pointer;
}

.story-image {
  max-width: 90%;
  max-height: 70%;
  margin-bottom: 20px;
}

.story-image img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.story-content {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
  border-radius: 10px;
  max-width: 90%;
  max-height: 30%;
  overflow-y: auto;
}

/* Kategoriler */
.categories-container {
  padding: 15px;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 15px;
  background-color: white;
  margin-bottom: 15px;
  box-shadow: var(--box-shadow);
}

.category-button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 30px;
  border: none;
  font-weight: bold;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.category-button:hover {
  opacity: 0.9;
}

.category-button.active {
  background-color: var(--secondary-color);
}

/* Ana İçerik */
main {
  flex: 1;
  padding: 15px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 15px;
}

/* Menü Başlığı */
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.menu-header h1 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.menu-header p {
  color: #666;
  font-size: 0.9rem;
}

/* Alt Kategoriler */
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.subcategory-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.subcategory-item:hover {
  transform: translateY(-5px);
}

.subcategory-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.subcategory-name {
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

/* Ürünler */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.product-item {
  display: flex;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-item:hover {
  transform: translateY(-3px);
}

.product-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.product-details {
  padding: 15px;
  flex: 1;
}

.product-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.product-price {
  font-weight: bold;
  color: var(--primary-color);
}

/* Ürün Detay Görünümü */
.product-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-container {
  background-color: white;
  width: 90%;
  max-width: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.product-detail-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.product-detail-image {
  width: 100%;
  height: 250px;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  padding: 20px;
}

.product-detail-info h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.product-detail-info p {
  color: #666;
  margin-bottom: 15px;
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Geri Butonu */
.back-button {
  padding: 8px 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.back-button:hover {
  background: var(--secondary-color);
}

/* Bulunamadı Mesajı */
.no-products-message {
  text-align: center;
  padding: 30px;
  font-size: 16px;
  color: #666;
}

.message {
  text-align: center;
  padding: 50px;
  color: #666;
}

/* Yükleniyor Efekti */
.story-loading,
.categories-loading,
.content-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #666;
  gap: 10px;
}

.content-loading {
  min-height: 200px;
}

.fa-spinner {
  font-size: 1.5rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Çevrimdışı Bildirimi */
.offline-notification {
  position: fixed;
  bottom: -60px;
  left: 0;
  right: 0;
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 10px;
  z-index: 1000;
  transition: bottom 0.3s ease-in-out;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.offline-notification.show {
  bottom: 0;
}

.offline-notification i {
  margin-right: 10px;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 20px;
  margin-top: auto;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: var(--secondary-color);
  border-radius: 50%;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.contact-info {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-info p {
  margin-bottom: 5px;
}

.copyright {
  text-align: center;
  margin-top: 15px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Responsive Tasarım */
@media (min-width: 768px) {
  #app {
    max-width: 800px;
  }
  
  .product-image {
    width: 150px;
    height: 150px;
  }
  
  .page-navigation .nav-link {
    flex-direction: row;
    gap: 8px;
  }
  
  .page-navigation .nav-link i {
    margin-bottom: 0;
  }
  
  .subcategory-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .page-navigation .nav-link span {
    display: none;
  }
  
  .subcategory-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  
  .product-image {
    width: 100px;
    height: 100px;
  }
  
  .story-content {
    max-height: 40%;
  }
}

/* Responsive - Mobil */
@media (max-width: 768px) {
  .search-box {
    max-width: 100%;
    margin: 10px 10px;
  }
  
  .menu-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .menu-header h1 {
    margin-bottom: 10px;
    font-size: 18px;
  }
}

/* Arama Kutusu */
.search-box {
    display: flex;
    margin: 10px auto;
    max-width: 500px;
    width: 90%;
    height: 40px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 0 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--secondary-color);
}

/* Arama Sonuçları */
.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.back-button {
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.back-button:hover {
    background: var(--secondary-color);
}

.no-products-message {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #666;
}

/* Media Sorguları */
@media (max-width: 768px) {
    .search-box {
        max-width: 100%;
        margin: 10px 10px;
    }
    
    .menu-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-header h1 {
        margin-bottom: 10px;
        font-size: 18px;
    }
}

/* Arama formu */
.search-form {
    margin: 0 1rem;
    flex-grow: 1;
    max-width: 400px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    background-color: var(--bg-light);
}

.search-button {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.clear-search {
    position: absolute;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: none;
    padding: 0.25rem;
}

.clear-search.visible {
    display: block;
}

/* Arama sonuçları */
.search-results {
    padding: 1rem;
}

.search-results h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.search-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.search-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

@media (max-width: 768px) {
    .search-form {
        max-width: none;
        margin: 0.5rem 0;
        order: 3;
        width: 100%;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .search-results-container {
        grid-template-columns: 1fr;
    }
}