/**
 * Tuliwear Social Sidebar CSS
 * Metodologia BEM, stylistyka B&W (Minimalizm & Premium)
 */

.tuli-social-sidebar {
  position: fixed;
  top: 30%;
  transform: translateY(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  width: auto;
  pointer-events: none; /* Pozwala na klikanie pod spodem kontenera */
}

/* Włączenie zdarzeń myszy tylko dla elementów wewnętrznych */
.tuli-social-sidebar__list {
  margin: 0 !important;
  padding: 0 !important;
  list-style-type: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}

.tuli-social-sidebar__item {
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.tuli-social-sidebar__link {
  display: flex;
  align-items: center;
  height: 46px;
  text-decoration: none !important;
  background-color: #232323;
  color: #ffffff !important;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  overflow: hidden;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tuli-social-sidebar__link:hover {
  background-color: #000000;
}

.tuli-social-sidebar__icon-wrapper {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tuli-social-sidebar__svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tuli-social-sidebar__label {
  padding: 0 16px;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.tuli-social-sidebar__link:hover .tuli-social-sidebar__label {
  opacity: 1;
}

/* ==========================================================================
   POŁOŻENIE: Z PRAWEJ STRONY
   ========================================================================== */
.tuli-social-sidebar--right {
  right: 0;
  align-items: flex-end;
}

.tuli-social-sidebar--right .tuli-social-sidebar__item {
  transform: translateX(calc(100% - 46px)); /* Chowa tekst, zostawia ikonę */
}

.tuli-social-sidebar--right .tuli-social-sidebar__item:hover {
  transform: translateX(0); /* Wysuwa cały element */
}

.tuli-social-sidebar--right .tuli-social-sidebar__link {
  flex-direction: row;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.08);
}

.tuli-social-sidebar--right .tuli-social-sidebar__link:hover {
  box-shadow: -4px 6px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   POŁOŻENIE: Z LEWEJ STRONY
   ========================================================================== */
.tuli-social-sidebar--left {
  left: 0;
  align-items: flex-start;
}

.tuli-social-sidebar--left .tuli-social-sidebar__item {
  transform: translateX(calc(-100% + 46px)); /* Chowa tekst, zostawia ikonę */
}

.tuli-social-sidebar--left .tuli-social-sidebar__item:hover {
  transform: translateX(0); /* Wysuwa cały element */
}

.tuli-social-sidebar--left .tuli-social-sidebar__link {
  flex-direction: row-reverse;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
}

.tuli-social-sidebar--left .tuli-social-sidebar__link:hover {
  box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   KANAŁY: INDYWIDUALNE STYLE (Domyślnie spójne B&W)
   ========================================================================== */
/* Można tu dodać drobne akcenty hover lub pozostawić czysty B&W */
.tuli-social-sidebar__item--fb .tuli-social-sidebar__link:hover {
  background-color: #1877f2; /* Klasyczny kolor FB na hover - opcjonalnie */
}
.tuli-social-sidebar__item--insta .tuli-social-sidebar__link:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}
.tuli-social-sidebar__item--tiktok .tuli-social-sidebar__link:hover {
  background-color: #010101;
}
.tuli-social-sidebar__item--pinterest .tuli-social-sidebar__link:hover {
  background-color: #bd081c;
}
.tuli-social-sidebar__item--phone .tuli-social-sidebar__link:hover {
  background-color: #232323; /* Pozostaje czarny/szary dla kontaktu */
}
.tuli-social-sidebar__item--email .tuli-social-sidebar__link:hover {
  background-color: #232323;
}


/* ==========================================================================
   RESPONSYWNOŚĆ (MOBILE)
   ========================================================================== */

/* 1. Ukrywanie panelu na mobile */
.tuli-social-sidebar--mobile-hide {
  @media (max-width: 767px) {
    display: none !important;
  }
}

/* 2. Pokazywanie tylko samych ikon na mobile */
.tuli-social-sidebar--mobile-show {
  @media (max-width: 767px) {
    top: auto;
    bottom: 20px;
    transform: none;
    
    /* Centrowanie na dole lub przesuwanie w narożnik */
    .tuli-social-sidebar__list {
      flex-direction: row;
      gap: 8px;
    }
    
    .tuli-social-sidebar__item {
      transform: none !important;
    }
    
    .tuli-social-sidebar__label {
      display: none;
    }
    
    .tuli-social-sidebar__link {
      width: 42px;
      height: 42px;
      border-radius: 50% !important; /* Okrągłe przyciski na mobile */
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    }
    
    .tuli-social-sidebar__icon-wrapper {
      width: 42px;
      height: 42px;
    }
  }
}

/* Dostosowanie pozycji samych ikon na dole w zależności od strony */
.tuli-social-sidebar--mobile-show.tuli-social-sidebar--right {
  @media (max-width: 767px) {
    right: 16px;
    left: auto;
  }
}

.tuli-social-sidebar--mobile-show.tuli-social-sidebar--left {
  @media (max-width: 767px) {
    left: 16px;
    right: auto;
  }
}

/* 3. Pokazywanie pełnego wysuwanego panelu na mobile (show_full) */
/* Zachowuje domyślne style i pozwala na kliknięcie/dotyk */
