/* ----------------------------- */
/* Ana Sayfa Özel CSS - anasayfa.css */
/* ----------------------------- */

/* Banner */
.banner {
  position: relative;
  height: 100vh;
  background: url('../images/banner-bg.png') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.banner .caption {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
  max-width: 90%;
}

#typing-text {
  font-size: 3rem;
  font-weight: 700;
  border-right: 2px solid #0ea5e9;
  display: inline-block;
  animation: blink 0.7s infinite;
  white-space: normal;
  word-wrap: break-word;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #0ea5e9; }
}

.banner .caption p {
  font-size: 1.2rem;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeSlideUp 1.5s ease-out forwards;
  animation-delay: 2s;
}

.banner .main-button {
  margin-top: 30px;
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
  animation-delay: 2.3s;
}

.banner .main-button a {
  padding: 12px 30px;
  background-color: #0ea5e9;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s;
}

.banner .main-button a:hover {
  background-color: #0b78b8;
  transform: translateY(-3px);
}

/* Öne Çıkan Ürünler */
.featured-products {
  padding: 60px 0;
  text-align: center;
  background: #111;
}

.featured-products h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0ea5e9;
}

.featured-item {
  background: #222;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  transition: transform 0.3s, background 0.3s;
}

.featured-item:hover {
  transform: translateY(-10px);
  background: #0ea5e9;
  color: #000;
}

.featured-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 23px;
  margin-bottom: 15px;
}

/* Banner ve ürün animasyonları */
@keyframes fadeSlideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* Indirim Banner */
.discount-banner {
  width: 100%;
  text-align: center;
  padding: 0.5rem 0;
  background: rgba(14, 165, 233, 0.3);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  #typing-text { font-size: 1.8rem; }
  .banner .caption p { font-size: 1rem; }
  .banner .main-button a { padding: 10px 25px; font-size: 14px; }
}
