/* Eklenen Evrensel Kutu Modeli */
* {
  box-sizing: border-box;
}

/* Genel Stil */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #f9f9f9;
  color: #333;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #6366F1;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* STICKY HEADER */
.sticky-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1f1f3e, #44376d);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* NAV */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.logo a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 24px;
}
.yazilim-r {
  font-size: 16px;
  font-weight: 400;
  margin-left: 5px;
}
.nav-toggle,
.nav-close {
  cursor: pointer;
}
.nav-toggle {
  display: none;
  font-size: 28px;
  margin-right: 10px;
  /* Mobilde sola yaslamak için ekleme */
  margin-left: 0;
}
.nav-close {
  display: none;
  font-size: 36px;
  position: absolute;
  top: 15px;
  right: 20px;
}
#mainNav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
#mainNav ul li {
  display: inline-block;
  margin: 0 10px;
  position: relative;
}
#mainNav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}
#mainNav ul li a:hover,
#mainNav ul li a:focus {
  color: #A5B4FC;
}
/* Dropdown menü için */
.dropdown {
  display: none;
  position: absolute;
  background: #1f1f3e;
  list-style: none;
  padding: 10px;
  margin: 0;
  top: 100%;
  left: 0;
  border-radius: 4px;
}
#accountNav:hover .dropdown {
  display: block;
}
#accountNav .dropdown li {
  display: block;
  margin: 5px 0;
}
#accountNav .dropdown li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}
/* Hesabım menüsünün her durumda görünür olması */
#accountNav {
  display: inline-block !important;
}

@media (max-width: 768px) {
  /* Mobilde hesabım yazısını gizleyip dropdown içeriğini açık bırakıyoruz */
  #accountNav > a {
    display: none;
  }
  #accountNav .dropdown {
    display: block !important;
    width: 100%;
    text-align: center;
    background: #1f1f3e;
    padding: 10px 0;
    border-radius: 0;
    position: relative;
  }
  #accountNav .dropdown li {
    display: block;
    margin: 10px 0;
  }
  /* Header ve kapsayıcı ayarları: tam genişlik, box-sizing ile taşma olmaması */
  header.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 9999;
  }
  .top-nav {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 10000;
  }
  .nav-close {
    display: none;
    position: relative;
    z-index: 10000;
  }
  header.sticky-header.open .nav-toggle {
    display: none;
  }
  header.sticky-header.open .nav-close {
    display: block;
  }
  #mainNav {
    display: none;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: #1f1f3e;
    z-index: 999;
    overflow-y: auto;
  }
  #mainNav.open {
    display: block;
  }
  #mainNav ul {
    margin-top: 60px;
  }
  #mainNav ul li {
    display: block;
    margin: 20px 0;
  }
  #mainNav .nav-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 10000;
  }
}

/* HERO Section */
.hero-section {
  position: relative;
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 50% 50%, #1e293b, #475569);
  animation: futuristicBreathing 6s infinite alternate;
  z-index: -1;
}
@keyframes futuristicBreathing {
  0% {
    transform: scale(1);
    background: radial-gradient(circle at 50% 50%, #1e293b, #475569);
  }
  50% {
    transform: scale(1.04);
    background: radial-gradient(circle at 45% 45%, #293444, #556274);
  }
  100% {
    transform: scale(1);
    background: radial-gradient(circle at 55% 55%, #1e293b, #475569);
  }
}
.hero-content h1 {
  font-size: 42px;
  margin-bottom: 10px;
}
.hero-content p {
  font-size: 18px;
  margin-bottom: 20px;
}
.cta-button {
  background-color: #3b82f6;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.cta-button:hover,
.cta-button:focus {
  background-color: #2563eb;
}

/* SECTION */
section {
  padding: 20px 15px;
  text-align: center;
  max-width: 1200px;
  margin: 20px auto;
}
.info-section {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ÜRÜNLER */
.product-section .section-desc {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.product-card {
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: left;
  transition: transform 0.3s;
  position: relative;
}
.product-card:hover {
  transform: scale(1.02);
}
.product-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}
.product-img-gallery {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin-bottom: 10px;
}
.product-img-gallery img {
  border-radius: 6px;
  width: 80px;
  height: 50px;
  object-fit: cover;
}
.product-img {
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}
.product-desc {
  font-size: 14px;
  margin-bottom: 10px;
}

/* Testimonial */
.testimonial-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonial-card {
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s;
}
.testimonial-card:hover {
  transform: scale(1.02);
}
.avatar img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}
.stars {
  font-size: 18px;
  color: #F59E0B;
  margin: 10px 0;
}
.comment {
  font-size: 14px;
  margin-bottom: 8px;
}
.user-info {
  font-size: 13px;
  color: #555;
}

/* Butonlar */
.detail-button,
.buy-button {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  margin-top: 4px;
  text-align: center;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.detail-button:hover,
.buy-button:hover,
.detail-button:focus,
.buy-button:focus {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* Buton (form) */
.btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
  display: inline-block;
}
.btn:hover,
.btn:focus {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff;
  margin: 60px auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 480px;
  position: relative;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.close:hover,
.close:focus {
  color: #333;
}
.modal-content h3 {
  margin-top: 0;
  font-size: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}
.modal-content label {
  display: block;
  margin: 8px 0 4px;
  font-weight: 600;
}
.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  font-size: 14px;
  transition: border-color 0.3s;
}
.modal-content input:focus,
.modal-content textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 6px rgba(59,130,246,0.3);
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, #1f1f3e, #44376d);
  color: white;
  text-align: center;
  padding: 15px;
  width: 100%;
  max-width: 100%;
  font-size: 14px;
  margin-top: 15px;
}

/* Ek Kullanıcı Profil Stilleri */
#profileInfo {
  background: #f7f7f7;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 15px;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#profileInfo p {
  margin: 5px 0;
}
.order-item {
  background: #f3f4f6;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
#logoutButton {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
#logoutButton:hover,
#logoutButton:focus {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* Hata mesajları */
.error-message {
  color: #EF4444;
  font-size: 14px;
  margin-top: 5px;
}

/* Yeni Slider & Yapboz gibi parçalara ayrılma (torn) Efekti */
.slider {
  position: relative;
  max-width: 800px;
  margin: 20px auto;
  overflow: hidden;
}
.slider-container {
  position: relative;
  width: 100%;
  height: 400px;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.slide.active {
  opacity: 1;
}
/* Torn (yırtılma) efekti */
.torn {
  animation: tornEffect 0.8s forwards;
}
@keyframes tornEffect {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  100% { transform: scale(0.5) rotate(45deg) translate(50px, -50px); opacity: 0; }
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
/* Slider içindeki img’lerin slider alanına tam sığması */
.slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider Altı Not İçerik ve Buton */
.slider-caption {
  text-align: center;
  margin-top: 15px;
}
.slider-caption h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.slider-caption p {
  font-size: 16px;
  margin-bottom: 12px;
}

#purchaseModal {
  user-select: none;
}