/*
 * Beauty Strokes - Custom Elementor Widgets Stylesheet
 */

/* ==========================================================================
   1. Carousel Widget (Swiper)
   ========================================================================== */
.bs-carousel-widget {
  position: relative;
  width: 100%;
}

.bs-carousel-container {
  overflow: hidden;
  padding: 10px 0 40px;
}

.bs-carousel-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

.bs-carousel-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.bs-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(74, 44, 34, 0.08);
}

.bs-carousel-card-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #f5ebe6;
}

.bs-carousel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bs-carousel-card:hover .bs-carousel-card-img img {
  transform: scale(1.05);
}

.bs-carousel-card-content {
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bs-carousel-card-eyebrow {
  font-size: 0.78rem;
  color: var(--rose);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bs-carousel-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.bs-carousel-card-desc {
  font-size: 0.92rem;
  color: #4d4238;
  margin-bottom: 16px;
  flex: 1;
}

/* Swiper Navigation & Pagination */
.bs-carousel-widget .swiper-button-prev,
.bs-carousel-widget .swiper-button-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-speed) ease;
}

.bs-carousel-widget .swiper-button-prev:after,
.bs-carousel-widget .swiper-button-next:after {
  font-size: 16px;
  font-weight: bold;
}

.bs-carousel-widget .swiper-button-prev:hover,
.bs-carousel-widget .swiper-button-next:hover {
  background: var(--rose);
  color: #ffffff;
  border-color: var(--rose);
}

.bs-carousel-widget .swiper-pagination-bullet {
  background: var(--ink);
  opacity: 0.25;
  width: 8px;
  height: 8px;
  transition: all var(--transition-speed) ease;
}

.bs-carousel-widget .swiper-pagination-bullet-active {
  background: var(--rose);
  opacity: 1;
  width: 24px;
  border-radius: 4px;
}

/* ==========================================================================
   2. Gallery Widget & Lightbox
   ========================================================================== */
.bs-gallery-widget {
  width: 100%;
}

.bs-gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.bs-gallery-filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.bs-gallery-filter-btn:hover,
.bs-gallery-filter-btn.is-active {
  background: var(--rose);
  color: #ffffff;
  border-color: var(--rose);
}

.bs-gallery-grid {
  display: grid;
  gap: 18px;
}

.bs-gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bs-gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bs-gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }
.bs-gallery-cols-5 { grid-template-columns: repeat(5, 1fr); }

.bs-gallery-item {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #f4ece7;
  cursor: pointer;
}

.bs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bs-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 44, 34, 0.68);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bs-gallery-item:hover img {
  transform: scale(1.08);
}

.bs-gallery-item:hover .bs-gallery-overlay {
  opacity: 1;
}

.bs-gallery-overlay-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.bs-gallery-overlay-caption {
  font-size: 0.85rem;
  color: var(--rose-light);
}

/* Lightbox Modal */
.bs-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(35, 29, 26, 0.94);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bs-lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.bs-lightbox-container {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bs-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.bs-lightbox-modal.is-active .bs-lightbox-img {
  transform: scale(1);
}

.bs-lightbox-caption-box {
  margin-top: 16px;
  text-align: center;
  color: #ffffff;
}

.bs-lightbox-caption-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: #ffffff;
}

.bs-lightbox-caption-desc {
  font-size: 0.9rem;
  color: var(--rose-light);
}

.bs-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 100000;
  transition: color 0.2s ease;
}

.bs-lightbox-close:hover {
  color: var(--rose);
}

.bs-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 100000;
}

.bs-lightbox-nav:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #ffffff;
}

.bs-lightbox-prev {
  left: 24px;
}

.bs-lightbox-next {
  right: 24px;
}

/* ==========================================================================
   3. Tabs Widget
   ========================================================================== */
.bs-tabs-widget {
  width: 100%;
}

.bs-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  list-style: none;
  flex-wrap: wrap;
}

.bs-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #7d6b63;
  padding: 12px 18px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.bs-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

.bs-tab-btn:hover,
.bs-tab-btn.is-active {
  color: var(--rose-dark);
}

.bs-tab-btn.is-active::after {
  transform: scaleX(1);
}

.bs-tabs-content {
  position: relative;
}

.bs-tab-pane {
  display: none;
  animation: bsFadeIn 0.35s ease forwards;
}

.bs-tab-pane.is-active {
  display: block;
}

@keyframes bsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. Collapsible / Accordion Widget & FAQ
   ========================================================================== */
.bs-accordion-widget {
  max-width: 800px;
  margin: 0 auto;
}

.bs-accordion-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.bs-accordion-header {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: color var(--transition-speed) ease;
}

.bs-accordion-header:hover {
  color: var(--rose);
}

.bs-accordion-icon {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rose);
  line-height: 1;
  transition: transform 0.25s ease;
}

.bs-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease, opacity 0.35s ease;
  font-size: 0.94rem;
  color: #4d4238;
  opacity: 0;
  line-height: 1.7;
}

.bs-accordion-item.is-open .bs-accordion-content {
  max-height: 500px;
  margin-top: 12px;
  opacity: 1;
}

/* ==========================================================================
   5. Multi-Column Grid Widget
   ========================================================================== */
.bs-grid-widget {
  display: grid;
  gap: 24px;
}

.bs-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bs-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bs-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.bs-grid-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 24px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.bs-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(74, 44, 34, 0.06);
}

.bs-grid-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--rose-dark);
  margin-bottom: 14px;
}

.bs-grid-card-list {
  list-style: none;
  font-size: 0.92rem;
}

.bs-grid-card-list li {
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
  color: #4d4238;
}

.bs-grid-card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--rose);
  font-size: 1.1rem;
  line-height: 1;
}

/* ==========================================================================
   6. Two-Column / Hero Widget
   ========================================================================== */
.bs-columns-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.bs-columns-reversed {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.bs-columns-reversed > * {
  direction: ltr;
}

.bs-columns-media {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 44, 34, 0.08);
}

.bs-columns-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   7. Steps / Process Widget
   ========================================================================== */
.bs-steps-widget {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bs-step-card {
  text-align: left;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.bs-step-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--rose);
  font-weight: 700;
  display: block;
}

.bs-step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 8px 0;
  color: var(--ink);
}

.bs-step-desc {
  font-size: 0.92rem;
  color: #4d4238;
}

/* ==========================================================================
   8. Testimonials Widget
   ========================================================================== */
.bs-testimonials-widget {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bs-testimonial-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bs-testimonial-stars {
  color: var(--rose);
  margin-bottom: 12px;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.bs-testimonial-text {
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: 16px;
  color: #3a3025;
  line-height: 1.6;
}

.bs-testimonial-who {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

/* Responsive Overrides */
@media (max-width: 850px) {
  .bs-columns-section {
    grid-template-columns: 1fr !important;
    gap: 36px;
  }
  .bs-grid-cols-3,
  .bs-grid-cols-4,
  .bs-steps-widget,
  .bs-testimonials-widget,
  .bs-gallery-cols-3,
  .bs-gallery-cols-4,
  .bs-gallery-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .bs-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .bs-lightbox-prev { left: 10px; }
  .bs-lightbox-next { right: 10px; }
}

@media (max-width: 580px) {
  .bs-grid-cols-2,
  .bs-grid-cols-3,
  .bs-grid-cols-4,
  .bs-steps-widget,
  .bs-testimonials-widget,
  .bs-gallery-cols-2,
  .bs-gallery-cols-3,
  .bs-gallery-cols-4,
  .bs-gallery-cols-5 {
    grid-template-columns: 1fr;
  }
}
