/* ==========================================================================
   PRODUCT SPOTLIGHT PLUGIN - CSS
   ========================================================================== */

:root {
  --spotlight-orange: #f59601;
  --spotlight-orange-glow: rgba(245, 150, 1, 0.3);
  --spotlight-green: #00ad46;
  --spotlight-green-glow: rgba(0, 173, 70, 0.3);
  --spotlight-text-dark: #111111;
  --spotlight-font-heading: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --spotlight-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --spotlight-transition: 0.5s;
}

/* Container */
.product-spotlight-section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(circle at center, rgba(0, 173, 70, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  box-sizing: border-box;
}

.product-spotlight-section *,
.product-spotlight-section *::before,
.product-spotlight-section *::after {
  box-sizing: border-box;
}

/* Main Section Heading ("Our Products") */
.product-spotlight-title {
  font-family: var(--spotlight-font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--spotlight-text-dark);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.4rem;
  z-index: 10;
}

.product-spotlight-subtitle {
  font-family: var(--spotlight-font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: #666666;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.5;
  z-index: 10;
}

/* Slider */
.spotlight-slider-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.spotlight-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--spotlight-transition) ease, visibility var(--spotlight-transition) ease;
}

.spotlight-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  position: relative;
}

/* Center Wrapper & Circle */
.spotlight-center-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Product Name (Vertical on Desktop Left side) */
.spotlight-product-name {
  position: absolute;
  left: -110px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--spotlight-font-heading);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--spotlight-text-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 20;
  transition: opacity var(--spotlight-transition) ease;
}

.spotlight-circular-bg {
  position: relative;
  width: 520px;
  height: 520px;
  max-width: 90vw;
  max-height: 90vw;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1.5px solid var(--spotlight-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 50px rgba(0, 173, 70, 0.06), 0 0 35px rgba(0, 173, 70, 0.12);
}

/* Rotating SVG HUD Rings */
.spotlight-rotating-svg {
  position: absolute;
  width: 88%;
  height: 88%;
  top: 6%;
  left: 6%;
  pointer-events: none;
  z-index: 1;
}

.spotlight-ring-cw {
  transform-origin: 260px 260px;
  animation: spotlightRotateCW 40s linear infinite;
}

.spotlight-ring-ccw {
  transform-origin: 260px 260px;
  animation: spotlightRotateCCW 28s linear infinite;
}

@keyframes spotlightRotateCW {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spotlightRotateCCW {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* Product Image */
.spotlight-img-container {
  position: relative;
  z-index: 4;
  height: 460px;
  max-height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.18));
  transition: transform 0.5s ease;
}

.spotlight-slide.active .spotlight-product-img {
  animation: spotlightFloat 6s ease-in-out infinite alternate;
}

@keyframes spotlightFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* Hotspots */
.spotlight-hotspot {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--spotlight-orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 0 0 var(--spotlight-orange-glow);
  animation: spotlightPulse 2.2s infinite;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

@keyframes spotlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 150, 1, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(245, 150, 1, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 150, 1, 0); }
}

.spotlight-hotspot:hover, .spotlight-hotspot.active {
  transform: scale(1.25);
  background-color: #e08800;
  animation: none;
}

.spotlight-hotspot-icon {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.spotlight-tooltip {
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 400;
  line-height: 1.4;
  max-width: 220px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 173, 70, 0.4);
  z-index: 30;
}

.spotlight-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(17, 17, 17, 0.94) transparent transparent transparent;
}

.spotlight-hotspot:hover .spotlight-tooltip,
.spotlight-hotspot.active .spotlight-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* DESKTOP ITEMS ON CIRCLE EDGES */
.spotlight-left-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  white-space: nowrap;
  z-index: 15;
  transition: transform 0.3s ease;
}

.spotlight-left-item-1 { top: 40%; left: 0%; transform: translate(-82%, -50%); }
.spotlight-left-item-2 { top: 61%; left: 0%; transform: translate(-82%, -50%); }

.spotlight-left-label {
  font-family: var(--spotlight-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--spotlight-text-dark);
  text-transform: uppercase;
  text-align: right;
}

.spotlight-left-icon,
.spotlight-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--spotlight-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: inset 3.5px 3.5px 7px #b87000, inset -3.5px -3.5px 7px #ffbc47, 0 4px 12px var(--spotlight-orange-glow);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spotlight-left-item:hover { transform: translate(-86%, -50%); }
.spotlight-left-item:hover .spotlight-left-icon {
  transform: scale(1.1);
  box-shadow: inset 4px 4px 8px #a66500, inset -4px -4px 8px #ffc35e, 0 6px 18px var(--spotlight-orange-glow);
}

.spotlight-left-icon svg,
.spotlight-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Feature Items on Right Arc */
.spotlight-feature-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
  z-index: 15;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.spotlight-feature-item-1 { top: 14.6%; left: 85.3%; transform: translate(-21px, -50%); }
.spotlight-feature-item-2 { top: 30.8%; left: 96.2%; transform: translate(-21px, -50%); }
.spotlight-feature-item-3 { top: 50.0%; left: 100.0%; transform: translate(-21px, -50%); }
.spotlight-feature-item-4 { top: 69.2%; left: 96.2%; transform: translate(-21px, -50%); }
.spotlight-feature-item-5 { top: 85.4%; left: 85.3%; transform: translate(-21px, -50%); }

.spotlight-feature-item:hover { transform: translate(-17px, -50%); }
.spotlight-feature-item:hover .spotlight-feature-icon {
  transform: scale(1.1);
  box-shadow: inset 3.5px 3.5px 7px #a66500, inset -3.5px -3.5px 7px #ffc35e, 0 6px 16px var(--spotlight-orange-glow);
}

.spotlight-feature-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--spotlight-text-dark);
  line-height: 1.3;
}

/* VERTICAL PAGINATION (STRICTLY VERTICAL ON ALL SCREENS) */
.spotlight-pagination {
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column !important;
  align-items: center;
  gap: 1.1rem;
  z-index: 20;
}

.spotlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cccccc;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  padding: 0;
}

.spotlight-dot:hover {
  background-color: #999999;
  transform: scale(1.25);
}

.spotlight-dot.active {
  background-color: var(--spotlight-orange);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 10px var(--spotlight-orange-glow);
}

/* MOBILE TABS (HIDDEN ON DESKTOP) */
.spotlight-mobile-tabs-section {
  display: none;
}

/* MEDIA QUERIES */
@media (max-width: 1300px) {
  .spotlight-center-wrapper { max-width: 900px; }
  .spotlight-circular-bg { width: 440px; height: 440px; }
  .spotlight-pagination { right: -40px; }
}

@media (max-width: 1080px) {
  .spotlight-circular-bg { width: 380px; height: 380px; }
  .spotlight-img-container { height: 340px; }
  .spotlight-left-label, .spotlight-feature-text { font-size: 0.85rem; }
  .spotlight-left-icon, .spotlight-feature-icon { width: 36px; height: 36px; }
}

@media (max-width: 868px) {
  .product-spotlight-section { padding: 1.25rem 1rem; }
  .product-spotlight-title { font-size: 1.75rem; margin-bottom: 0.75rem; }

  /* Product Name horizontally oriented below center circle in phone view */
  .spotlight-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .spotlight-circular-bg {
    order: 1;
  }

  .spotlight-product-name {
    order: 2;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    writing-mode: horizontal-tb;
    rotate: 0deg;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    margin: 1.25rem 0 0.5rem 0;
    white-space: normal;
  }

  /* Hide Desktop circle edge items on phone view */
  .spotlight-circular-bg .spotlight-left-item,
  .spotlight-circular-bg .spotlight-feature-item {
    display: none !important;
  }

  .spotlight-circular-bg {
    width: 310px;
    height: 310px;
    margin: 0 auto;
  }
  .spotlight-img-container { height: 270px; }

  /* Keep vertical pagination on right edge in phone view */
  .spotlight-pagination {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column !important;
    margin: 0;
    gap: 0.85rem;
  }

  /* Show Mobile Tabs at bottom */
  .spotlight-mobile-tabs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 460px;
    margin: 1rem auto 0 auto;
    z-index: 15;
  }

  .spotlight-mobile-tabs-header {
    display: flex;
    gap: 0.5rem;
    background-color: #f2f2f2;
    padding: 4px;
    border-radius: 30px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .spotlight-tab-btn {
    padding: 8px 20px;
    border-radius: 25px;
    border: none;
    background: transparent;
    font-family: var(--spotlight-font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .spotlight-tab-btn.active {
    background-color: var(--spotlight-orange);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--spotlight-orange-glow);
  }

  .spotlight-tab-content {
    display: none;
    width: 100%;
    animation: spotlightFadeInTab 0.35s ease;
  }

  .spotlight-tab-content.active {
    display: block;
  }

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

  .spotlight-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .spotlight-mobile-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background-color: #f9f9f9;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
  }

  .spotlight-mobile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--spotlight-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: inset 2.5px 2.5px 5px #b87000, inset -2.5px -2.5px 5px #ffbc47, 0 3px 8px var(--spotlight-orange-glow);
  }

  .spotlight-mobile-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
  }

  .spotlight-mobile-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--spotlight-text-dark);
  }
}
