/* Custom styles for WNET website */
/* Tailwind CSS handles most styling, this file is for additional customizations */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Ensure Material Icons work correctly */
.material-icons-round {
  font-family: 'Material Icons Round';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
  font-display: swap;
  user-select: none;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
  font-display: swap;
  user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Smooth transitions */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #0078D4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #F37021;
}

/* Ensure Tailwind utilities work even if CDN fails */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Override Bootstrap .bg-secondary to use orange color */
.bg-secondary {
  background-color: #F37021 !important;
}

/* Hero Carousel Custom Styles - Sadece .hero-page-carousel içindeki elementleri etkiler */
.hero-page-carousel {
  position: relative;
  touch-action: pan-y pinch-zoom;
}

.hero-page-carousel .carousel-inner {
  overflow: hidden;
  border-radius: 1rem;
}

.hero-page-carousel .carousel-item {
  transition: transform 1.2s ease-in-out;
}

/* Carousel Control Buttons - Sadece hero carousel için özel tasarım */
.hero-page-carousel .carousel-control-prev,
.hero-page-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.hero-page-carousel .carousel-control-prev:hover,
.hero-page-carousel .carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.hero-page-carousel .carousel-control-prev:focus,
.hero-page-carousel .carousel-control-next:focus {
  outline: 2px solid rgba(0, 120, 212, 0.5);
  outline-offset: 2px;
}

.hero-page-carousel .carousel-control-prev {
  left: 20px;
}

.hero-page-carousel .carousel-control-next {
  right: 20px;
}

.hero-page-carousel .carousel-control-prev-icon,
.hero-page-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  filter: brightness(0) invert(1);
}

/* Carousel Indicators - Sadece hero carousel için özel tasarım */
.hero-page-carousel .carousel-indicators {
  position: relative;
  margin-bottom: 1.5rem;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.hero-page-carousel .carousel-indicators button[type="button"] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-indent: -999px;
  overflow: hidden;
}

.hero-page-carousel .carousel-indicators button[type="button"]:hover {
  background-color: rgba(0, 0, 0, 0.5);
  transform: scale(1.2);
}

.hero-page-carousel .carousel-indicators button[type="button"].active {
  background-color: #0078D4;
  border-color: #0078D4;
  width: 30px;
  border-radius: 6px;
  transform: scale(1);
}

.hero-page-carousel .carousel-indicators button[type="button"].active:hover {
  transform: scale(1.1);
}

/* Carousel pause on hover - Bootstrap'in data-bs-pause="hover" özelliği ile çalışır */
.hero-page-carousel:hover .carousel-control-prev,
.hero-page-carousel:hover .carousel-control-next {
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-page-carousel .carousel-control-prev,
  .hero-page-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .hero-page-carousel .carousel-control-prev-icon,
  .hero-page-carousel .carousel-control-next-icon {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
  }
  
  .hero-page-carousel .carousel-control-prev {
    left: 10px;
  }
  
  .hero-page-carousel .carousel-control-next {
    right: 10px;
  }
  
  .hero-page-carousel .carousel-indicators {
    margin-bottom: 1rem;
    gap: 6px;
  }
  
  .hero-page-carousel .carousel-indicators button[type="button"] {
    width: 10px;
    height: 10px;
  }
  
  .hero-page-carousel .carousel-indicators button[type="button"].active {
    width: 24px;
  }
}
