/* home.css — ana sayfa bileşenleri
   HeroSlider / AboutSection / ProductsSection / FeaturedSection / NewsSection
   (orijinal *.module.css dosyaları, önekli sınıf adlarıyla) */

/* ==================== HeroSlider (hero-) ==================== */
.hero-wrapper {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background: var(--secondary);
}

.hero-placeholder {
  height: 80vh;
  min-height: 500px;
  background: #cbd5e1;
}

/* Swiper yerine vanilla fade slider */
.hero-swiper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-bg-image, .hero-bg-video {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 6s ease-out;
}

.hero-bg-image {
  background-size: cover;
  background-position: center;
}

/* Aktif slayttayken resmi biraz küçült (kenburns efekti) */
.hero-slide.is-active .hero-bg-image,
.hero-slide.is-active .hero-bg-video {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.4) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
}

.hero-title {
  color: white;
  font-size: 56px;
  margin-bottom: 16px;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease 0.5s;
}

.hero-desc {
  color: #e2e8f0;
  font-size: 20px;
  max-width: 600px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease 0.7s;
}

/* Slayt aktifleştiğinde yazıları göster */
.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Kontroller (orijinalde swiper/css'ten geliyordu) */
.hero-pagination {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-pagination button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.hero-pagination button.is-active { background: #00b4d8; width: 28px; border-radius: 6px; }

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(15,23,42,0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
.hero-nav:hover { background: var(--primary); }
.hero-nav.prev { left: 24px; }
.hero-nav.next { right: 24px; }

@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 16px; }
  .hero-wrapper { height: 60vh; }
  .hero-nav { display: none; }
}

/* ==================== AboutSection (about-) ==================== */
.about-section {
  padding: 80px 0;
  background-color: var(--white);
  text-align: center;
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--bg) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-content p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* ==================== ProductsSection (prod-) ==================== */
.prod-section {
  padding: 80px 0;
  background-color: var(--bg);
}

.prod-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.prod-filter-btn {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 8px 24px;
  border-radius: 30px;
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.prod-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.prod-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.prod-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.prod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.prod-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.prod-image img,
.prod-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.prod-card:hover .prod-image img {
  transform: scale(1.05);
}

.prod-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.prod-card:hover .prod-overlay {
  opacity: 1;
}

.prod-view-btn {
  background: white;
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  transform: translateY(20px);
  transition: all 0.3s;
}

.prod-view-btn:hover {
  background: var(--primary);
  color: white;
}

.prod-card:hover .prod-view-btn {
  transform: translateY(0);
}

.prod-lower {
  padding: 24px;
  text-align: center;
}

.prod-lower h3 a {
  color: var(--secondary);
  font-size: 20px;
  text-decoration: none;
}

.prod-lower h3 a:hover {
  color: var(--primary);
}

/* ==================== FeaturedSection (feat-) ==================== */
.feat-section {
  padding: 60px 0;
  background: white;
  border-top: 1px solid #f1f5f9;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feat-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--bg);
  border-radius: 16px;
  transition: all 0.3s;
  border: 1px solid #f1f5f9;
}

.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  background: white;
  border-color: #e2e8f0;
}

.feat-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: inline-block;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  width: 90px;
  height: 90px;
  line-height: 90px;
  border-radius: 50%;
}

.feat-card h3 {
  margin-bottom: 16px;
}

.feat-card h3 a {
  color: var(--secondary);
}

.feat-card h3 a:hover {
  color: var(--primary);
}

.feat-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* ==================== NewsSection (news-) ==================== */
.news-section {
  padding: 80px 0;
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.news-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-image img,
.news-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-content .news-date {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.news-content h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.news-content h3 a {
  color: var(--secondary);
}

.news-content h3 a:hover {
  color: var(--primary);
}

.news-content p {
  color: var(--text-light);
  margin-bottom: 24px;
  flex: 1;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--secondary);
}

.news-read-more span {
  transition: transform 0.3s;
}

.news-read-more:hover {
  color: var(--primary);
}

.news-read-more:hover span {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}
