/* assets/css/style.css - TAM, TEMİZ, ÇALIŞAN HALİ (2025) */

.top-bar {
  background: linear-gradient(90deg, #1e40af, #0d9488);
  color: white;
  font-size: 0.875rem;
  padding: 0.75rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.quick-links a { color: white; text-decoration: none; }
.quick-links a:hover { color: #fde047; }
.quick-links span { margin: 0 0.5rem; color: rgba(255,255,255,0.5); }
.social-icons a { color: white; margin-left: 0.75rem; }
.social-icons a:hover { color: #fbbf24; }

.main-header {
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: fixed;
  top: 2.5rem;
  width: 100%;
  z-index: 40;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, #3b82f6, #10b981) 1;
}

/* Slider container */
.swiper-container {
  height: 450px !important;
  max-height: 450px !important;
  min-height: 300px !important;
}
.slide-image-1,
.slide-image-2 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.group:hover .slide-image-1,
.group:hover .slide-image-2 {
  transform: scale(1.05);
}
.slide-image-1 { background-image: url('../../images/bg-1.webp'); }
.slide-image-2 { background-image: url('../../images/bg-2.webp'); }

/* OKLAR */
.custom-prev-slider,
.custom-next-slider {
  width: 50px !important;
  height: 50px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.4s ease !important;
  opacity: 0.9;
}
.custom-prev-slider:hover,
.custom-next-slider:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  transform: scale(1.15) !important;
  opacity: 1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}
.custom-prev-slider svg,
.custom-next-slider svg {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 3 !important;
  color: white !important;
}
.custom-prev-slider:hover svg,
.custom-next-slider:hover svg { color: #2563eb !important; }

/* PAGINATION */
.swiper-pagination {
  position: relative !important;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 14px !important;
  padding: 0 10px;
}
.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: #4b5563 !important;
  border: none !important;
  border-radius: 50% !important;
  opacity: 0.6 !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
}
.swiper-pagination-bullet-active {
  background: #2563eb !important;
  transform: scale(1.25) !important;
  opacity: 1 !important;
}

.btn-kayit:hover { background: #f3f4f6; }
.card { background: white; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,0.1); padding: 2rem; transition: all 0.4s; }
.card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.15); transform: translateY(-0.5rem); }
.card-pink { border-top: 4px solid #ec4899; }
.card-green { border-top: 4px solid #10b981; }
.card-purple { border-top: 4px solid #8b5cf6; }
.card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.card-header i { font-size: 2.5rem; }
.card-header h3 { font-size: 1.5rem; font-weight: bold; color: #1f2937; }
.event-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; }
.event-item:last-child { border: none; }
.badge { font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-weight: 600; }
.badge-soon { background: #d1fae5; color: #065f46; }
.badge-open { background: #dbeafe; color: #1e40af; }
.badge-red { background: #fee2e2; color: #991b1b; }
.card-link { display: inline-block; margin-top: 1.25rem; color: inherit; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.section-title { font-size: 1.875rem; font-weight: bold; color: #1e40af; display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.section-title i { font-size: 2.5rem; color: #8b5cf6; }
.resource-card { background: white; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,0.1); padding: 1.5rem; }
.card-purple-border { border-left: 4px solid #8b5cf6; }
.card-blue-border { border-left: 4px solid #3b82f6; }
.card-red-border { border-left: 4px solid #dc2626; }
.resource-card h3 { font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; }
.resource-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 0.5rem; text-decoration: none; color: #374151; transition: background 0.3s; }
.resource-item:hover { background: #f3e8ff; }
.resource-item i { font-size: 1.5rem; color: #dc2626; }
.resource-item p { font-weight: 500; }
.resource-item small { font-size: 0.75rem; color: #6b7280; }
.archive-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; border-radius: 0.5rem; text-decoration: none; color: #374151; transition: background 0.3s; }
.archive-item:hover { background: #dbeafe; }
.archive-item i { color: #3b82f6; }
.camp-card { padding: 1rem; border-radius: 0.75rem; background: #fee2e2; }
.camp-open { background: #fee2e2; }
.camp-archive { background: #f3f4f6; }
.camp-card p { font-weight: 600; }
.camp-card small { font-size: 0.875rem; color: #4b5563; }
.link-small { color: #dc2626; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.link-small:hover { text-decoration: underline; }

.btn-uye {
  background: linear-gradient(135deg, #2563eb, #0d9488);
  color: white;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s;
}
.btn-uye:hover { background: linear-gradient(135deg, #1d4ed8, #0f766e); }

.more-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 10px 12px;
  background: #e7f3ff;
  border-radius: 8px;
  text-decoration: none;
  color: #007bff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #b8daff;
}
.more-link:hover { background: #d4edff; color: #0056b3; border-color: #007bff; }
.more-link i { font-size: 1.1rem; }

/* İLETİŞİM SAYFASI */
.contact-info-card { transition: all 0.3s ease; cursor: pointer; }
.contact-info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.form-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }
.btn-submit { background: linear-gradient(90deg, #10b981, #0d9488); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }
.btn-submit:hover { background: linear-gradient(90deg, #0d9488, #047857); }
#form-message.success { background-color: #d1fae5; color: #065f46; font-weight: 600; border: 1px solid #6ee7b7; }
#form-message.error { background-color: #fee2e2; color: #991b1b; font-weight: 600; border: 1px solid #fca5a5; }
#form-message.loading { background-color: #e0f2fe; color: #1e40af; font-weight: 600; border: 1px solid #93c5fd; }

/* SABİT HEADER BOŞLUĞU */
.hero-slider { padding-top: 4.25rem; }

/* FOOTER */
.main-footer { background: #1f2937; color: white; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col h5 { margin-bottom: 0.75rem !important; padding-bottom: 0.5rem !important; }
.footer-col ul { list-style: none; padding-left: 0; margin: 0 !important; }
.footer-col ul li a { display: flex; align-items: center; }
.footer-col .space-y-3 p { display: flex; align-items: center; margin-bottom: 0.75rem !important; }
.footer-col .space-y-3 p:last-child { margin-bottom: 0 !important; }
.footer-col .space-y-3 i { margin-right: 0.75rem; line-height: 1; }

/* SCROLL TO TOP */
.scroll-to-top {
  position: fixed; bottom: 25px; right: 25px; z-index: 999;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: #3b82f6; color: white; font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.4s ease;
}
.scroll-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background: #2563eb; box-shadow: 0 6px 15px rgba(0,0,0,0.35); }

/* ============= MOBİL DÜZELTMELER - 2025 Güncel ============= */
/* Slider'ın header altında ezilmemesi ve duyuruların üstünü kapatmaması */
@media (max-width: 767px) {
  /* Header'ları incelt */
  .top-bar {
    padding: 0.5rem 0 !important;
    font-size: 0.8rem;
  }

  .main-header {
    top: 2.8rem !important; /* Top-bar inceldiği için header da yukarı çıksın */
  }

  .main-header .container {
    padding: 0.5rem 0 !important;
  }

  /* Hero slider'a yeterli üst boşluk (fixed header'ların toplam yüksekliği kadar) */
  .hero-slider {
    padding-top: 7.5rem !important; /* Test edip 7rem-8rem arası ayarlayabilirsiniz */
    margin-top: 0 !important;
  }

  /* Slider yüksekliğini mobil için dengeli hale getir */
  .swiper-container {
    height: 65vh !important;     /* Daha fazla alan kaplasın ama taşmasın */
    min-height: 280px !important;
    max-height: 450px !important;
  }

  /* SLIDE RESİMLERİ MOBİLDE KÖTÜ GÖRÜNMESİN */
  .slide-image-1,
  .slide-image-2 {
    background-size: cover !important;        /* Contain yerine cover → tüm alanı doldursun */
    background-position: center !important;   /* Ortalanmış */
    background-repeat: no-repeat !important;
    background-color: transparent !important; /* Siyah arka plan kalksın */
  }

  /* Eğer resimlerin odak noktası üstte olsun istiyorsanız (portre resimler için) */
  /* .slide-image-1 { background-position: top center !important; } */
  /* .slide-image-2 { background-position: top center !important; } */

  /* Slider oklarını mobilde biraz küçült (daha şık dursun) */
  .custom-prev-slider,
  .custom-next-slider {
    width: 42px !important;
    height: 42px !important;
  }

  .custom-prev-slider svg,
  .custom-next-slider svg {
    width: 24px !important;
    height: 24px !important;
  }

  /* Pagination (noktalar) mobilde daha iyi görünsün */
  .swiper-pagination {
    margin-top: 20px !important;
  }
}

/* Ekstra: Çok küçük ekranlar için (iPhone SE gibi) */
@media (max-width: 480px) {
  .hero-slider {
    padding-top: 7rem !important;
  }
  .swiper-container {
    height: 55vh !important;
    min-height: 240px !important;
  }
}