/* =============================================
   Aligner Derneği — Custom Styles
   Tailwind CSS'in kapsamadığı özel stiller
   ============================================= */

/* --- Gilroy Font Family (tek aile, doğru ağırlıklar) --- */
/* CDN'den gelen farklı font-family isimlerini tek "Gilroy" altında birleştiriyoruz */
.font-gilroy {
  font-family: 'Gilroy-Bold', sans-serif; /* varsayılan fallback */
}
.font-gilroy.font-light {
  font-family: 'Gilroy-Light', sans-serif !important;
}
.font-gilroy.font-normal {
  font-family: 'Gilroy-Regular', sans-serif !important;
}
.font-gilroy.font-medium {
  font-family: 'Gilroy-Medium', sans-serif !important;
}
.font-gilroy.font-bold {
  font-family: 'Gilroy-Bold', sans-serif !important;
}
.font-gilroy.font-extrabold {
  font-family: 'Gilroy-Bold', sans-serif !important;
}
.font-gilroy.font-black {
  font-family: 'Gilroy-Heavy', sans-serif !important;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Rotated / Vertical Text --- */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* --- Marquee Animation (Basın Logoları) --- */
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Navbar Transition --- */
.navbar-scrolled {
  top: 0 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-link {
  color: #3e484f !important;
}

.navbar-scrolled .nav-logo-light {
  display: none;
}

.navbar-scrolled .nav-logo-dark {
  display: block;
}

.navbar-scrolled #hamburger {
  color: #3e484f;
  background: rgba(62, 72, 79, 0.08);
  border-color: rgba(62, 72, 79, 0.15);
}

/* --- Dropdown Menu --- */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.nav-dropdown-trigger:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Swiper Customizations --- */

/* Hero Slider — Line Pagination */
.hero-swiper .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.25;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  width: 48px;
}

.hero-swiper .swiper-pagination-bullet-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #ffdd00;
  border-radius: 2px;
  animation: paginationFill 7s linear forwards;
}

@keyframes paginationFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Benefits Carousel */
.benefits-swiper .swiper-pagination-bullet {
  background: #dbdbdb;
  opacity: 1;
}

.benefits-swiper .swiper-pagination-bullet-active {
  background: #ffdd00;
}

/* Announcements Carousel — mobilde taşma fix */
.announcements-swiper {
  overflow: hidden !important;
  max-width: 100%;
}

.announcements-swiper .swiper-slide {
  width: 100% !important;
}

.announcements-swiper .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.5;
}

.announcements-swiper .swiper-pagination-bullet-active {
  background: #ffdd00;
  opacity: 1;
}

/* Blog Carousel — Slide Widths & Equal Height */
.blog-swiper .swiper-wrapper {
  align-items: stretch;
}

.blog-swiper .swiper-slide {
  width: 280px;
  height: auto;
}

@media (min-width: 576px) {
  .blog-swiper .swiper-slide {
    width: 320px;
  }
}

@media (min-width: 992px) {
  .blog-swiper .swiper-slide {
    width: 360px;
  }
}

/* --- Card Hover Top Border --- */
.card-hover-border {
  border-top: 4px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-border:hover {
  border-top-color: #ffdd00;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- Countdown Timer Boxes --- */
.countdown-box {
  min-width: 80px;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* --- Smooth Scroll --- */
html,
body {
  scroll-behavior: smooth;
  overflow-x: clip;
}

/* --- Hide Scrollbar (horizontal snap scroll) --- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* --- Selection Color --- */
::selection {
  background: #ffdd00;
  color: #3e484f;
}
