/**
 * Tuliwear Hero Slider CSS Styles
 * Metodologia BEM, stylistyka B&W (Minimalizm & Premium)
 */

/* Zmienne projektowe */
:root {
  --tuli-color-primary: #232323;
  --tuli-color-text-dark: #232323;
  --tuli-color-text-muted: #5e5e5e;
  --tuli-color-bg-light: #f9f9f9;
  --tuli-color-white: #ffffff;
  --tuli-color-black: #000000;
  --tuli-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --tuli-transition-duration: 0.6s;
  --tuli-border-radius: 8px;
}

/* Główne style kontenera hero */
.tuli-hero {
  position: relative;
  width: 100%;
  font-family: var(--tuli-font-family);
  overflow: hidden;
  background-color: var(--tuli-color-white);
  box-sizing: border-box;
}

.tuli-hero *, .tuli-hero *::before, .tuli-hero *::after {
  box-sizing: inherit;
}

.tuli-hero__wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Kontener slajdów */
.tuli-hero__slides-container {
  position: relative;
  width: 100%;
}

/* Pojedynczy slajd - animacja fade-in */
.tuli-hero__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tuli-transition-duration) cubic-bezier(0.4, 0, 0.2, 1),
              visibility var(--tuli-transition-duration) cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  z-index: 1;
}

.tuli-hero__slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Zapobieganie przesunięciu układu - nieaktywne slajdy są pozycjonowane absolutnie */
.tuli-hero__slide:not(.tuli-hero__slide--active) {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

/* ==========================================================================
   UKŁAD 1: FULL-WIDTH BACKGROUND (Zdjęcie w tle)
   ========================================================================== */
.tuli-hero--layout-fullwidth {
  height: 83vh;
  min-height: 550px;
  max-height: 800px;
}

.tuli-hero--layout-fullwidth .tuli-hero__wrapper,
.tuli-hero--layout-fullwidth .tuli-hero__slides-container,
.tuli-hero--layout-fullwidth .tuli-hero__slide {
  height: 100%;
}

/* Wewnętrzny wrapper tła */
.tuli-hero__background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.tuli-hero__bg-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

/* Ciemna, profesjonalna nakładka dla kontrastu tekstu */
.tuli-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0.2) 0%, 
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
}

/* Kontener treści nałożony na tło */
.tuli-hero__content-wrapper {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.tuli-hero__content--centered {
  text-align: center;
  max-width: 760px;
  color: var(--tuli-color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: tuliFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Definicje typograficzne dla układu Full-Width */
.tuli-hero--layout-fullwidth .tuli-hero__tag {
  color: var(--tuli-color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.tuli-hero--layout-fullwidth .tuli-hero__title {
  color: var(--tuli-color-white);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.tuli-hero--layout-fullwidth .tuli-hero__desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 640px;
}

/* Przyciski dla układu Full-Width */
.tuli-hero--layout-fullwidth .tuli-hero__btn--primary {
  background-color: var(--tuli-color-white);
  color: var(--tuli-color-black);
  border: 1px solid var(--tuli-color-white);
}

.tuli-hero--layout-fullwidth .tuli-hero__btn--primary:hover {
  background-color: transparent;
  color: var(--tuli-color-white);
}

.tuli-hero--layout-fullwidth .tuli-hero__btn--secondary {
  background-color: transparent;
  color: var(--tuli-color-white);
  border: 1px solid transparent;
}

.tuli-hero--layout-fullwidth .tuli-hero__btn--secondary:hover {
  color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   UKŁAD 2: SPLIT 50/50 (Tekst po lewej, zdjęcie po prawej)
   ========================================================================== */
.tuli-hero--layout-split {
  background-color: var(--tuli-color-bg-light);
  padding: 60px 0;
}

.tuli-hero__split-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 40px;
  width: 100%;
}

.tuli-hero__text-col {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: tuliFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.tuli-hero__image-col {
  flex: 0 0 50%;
  /*max-width: 50%;*/
  max-width: fit-content;
}

/* Wewnętrzna ramka obrazka w układzie Split */
.tuli-hero__image-inner {
  position: relative;
  width: 100%;
  /*padding-bottom: 75%; !* Proporcje obrazka 4:3 *!*/
  border-radius: var(--tuli-border-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1200px) {
  .tuli-hero__text-col {
    padding: 0px 30px;
  }
}


3.tuli-hero__split-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.tuli-hero__slide--active .tuli-hero__split-image {
  transform: scale(1.02);
  max-height: 550px;
}

/* Definicje typograficzne dla układu Split */
.tuli-hero--layout-split .tuli-hero__tag {
  color: var(--tuli-color-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tuli-hero--layout-split .tuli-hero__title {
  color: var(--tuli-color-primary);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.tuli-hero--layout-split .tuli-hero__desc {
  color: var(--tuli-color-text-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Przyciski dla układu Split */
.tuli-hero--layout-split .tuli-hero__btn--primary {
  background-color: var(--tuli-color-primary);
  color: var(--tuli-color-white);
  border: 1px solid var(--tuli-color-primary);
}

.tuli-hero--layout-split .tuli-hero__btn--primary:hover {
  background-color: transparent;
  color: var(--tuli-color-primary);
}

.tuli-hero--layout-split .tuli-hero__btn--secondary {
  background-color: transparent;
  color: var(--tuli-color-primary);
  border: 1px solid transparent;
}

.tuli-hero--layout-split .tuli-hero__btn--secondary:hover {
  color: var(--tuli-color-text-muted);
}

@media (max-width: 767px) {
  .tuli-hero__text-col {
    order: 2;
  }
  .tuli-hero__image-col {
    order: 1;
  }
  .tuli-hero--layout-split {
    padding: 0;
  }
}


/* ==========================================================================
   WSPÓLNE ELEMENTY: PRZYCISKI, STRZAŁKI, KROPKI
   ========================================================================== */
.tuli-hero__buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stylowanie przycisków */
.tuli-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px; /* Zaokrąglony kształt - pill shape */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.tuli-hero__btn:focus {
  outline: none;
}

/* Ikona w przycisku pomocniczym z mikro-animacją */
.tuli-hero__btn-icon {
  font-size: 18px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.tuli-hero__btn--secondary:hover .tuli-hero__btn-icon {
  transform: translateX(4px);
}

/* Nawigacja: Strzałki */
.tuli-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(0, 0, 0, 0.15);
  color: var(--tuli-color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  outline: none;
  padding: 0;
}

.tuli-hero__arrow span {
  font-size: 24px;
  display: block;
}

.tuli-hero__arrow:hover {
  background-color: var(--tuli-color-white);
  color: var(--tuli-color-black);
  border-color: var(--tuli-color-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tuli-hero__arrow--left {
  left: 24px;
}

.tuli-hero__arrow--right {
  right: 24px;
}

/* Modyfikacja strzałek w układzie Split (czarno-białe) */
.tuli-hero--layout-split .tuli-hero__arrow {
  border-color: rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--tuli-color-primary);
}

.tuli-hero--layout-split .tuli-hero__arrow:hover {
  background-color: var(--tuli-color-primary);
  color: var(--tuli-color-white);
  border-color: var(--tuli-color-primary);
}

/* Ukrywanie strzałek domyślnie, pokazanie na desktopie po najechaniu na slider */
@media (min-width: 992px) {
  .tuli-hero__arrow {
    opacity: 0;
  }
  .tuli-hero:hover .tuli-hero__arrow {
    opacity: 1;
  }
}

/* Nawigacja: Kropki */
.tuli-hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.tuli-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.tuli-hero__dot--active {
  background-color: var(--tuli-color-white);
  transform: scale(1.3);
}

/* Kropki w układzie Split */
.tuli-hero--layout-split .tuli-hero__dots {
  bottom: -40px; /* Wyciągnięcie kropek pod sekcję split */
}

.tuli-hero--layout-split .tuli-hero__dot {
  background-color: rgba(35, 35, 35, 0.2);
}

.tuli-hero--layout-split .tuli-hero__dot--active {
  background-color: var(--tuli-color-primary);
}

/* Dodatkowy margines dolny sekcji split dla kropek */
.tuli-hero--layout-split {
  margin-bottom: 50px;
}


/* ==========================================================================
   KLUCZOWE ANIMACJE
   ========================================================================== */
@keyframes tuliFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */

/* Ekrany średnie (Tablet) */
@media (max-width: 991px) {
  .tuli-hero--layout-fullwidth {
    height: 60vh;
    min-height: 480px;
  }

  .tuli-hero--layout-fullwidth .tuli-hero__title {
    font-size: 38px;
  }

  .tuli-hero--layout-fullwidth .tuli-hero__desc {
    font-size: 16px;
    margin-bottom: 24px;
  }

  /* Split layout dla tabletu */
  .tuli-hero__split-container {
    gap: 30px;
  }

  .tuli-hero--layout-split .tuli-hero__title {
    font-size: 32px;
  }
}

/* Ekrany małe (Mobile) */
@media (max-width: 767px) {
  .tuli-hero--layout-fullwidth {
    height: auto;
    min-height: 400px;
    aspect-ratio: 4/5; /* Dobre proporcje dla mobile */
  }

  .tuli-hero--layout-fullwidth .tuli-hero__content-wrapper {
    padding: 30px 16px;
  }

  .tuli-hero--layout-fullwidth .tuli-hero__title {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .tuli-hero--layout-fullwidth .tuli-hero__desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .tuli-hero__buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .tuli-hero__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
  }

  .tuli-hero__arrow {
    width: 40px;
    height: 40px;
  }

  .tuli-hero__arrow--left {
    left: 12px;
  }

  .tuli-hero__arrow--right {
    right: 12px;
  }

  /* Przekształcenie Split 50/50 w układ pionowy */
  .tuli-hero__split-container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 0 16px;
  }

  .tuli-hero__text-col,
  .tuli-hero__image-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .tuli-hero__text-col {
    align-items: center;
  }

  .tuli-hero--layout-split .tuli-hero__title {
    font-size: 28px;
  }

  .tuli-hero--layout-split .tuli-hero__desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .tuli-hero--layout-split .tuli-hero__dots {
    bottom: -30px;
  }
}
