/**
 * Psychic Specialist Sidebar Styling
 * Version: 1.0.0
 *
 * Sticky advertising sidebar with auto-scrolling specialist slider
 * Used on Video Archive and other applicable pages
 */

/* ============================================
   PSYCHIC SPECIALIST SIDEBAR
   ============================================ */

.pn-specialist-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 120px;
}

/* ============================================
   SLIDER WRAPPER
   ============================================ */

.pn-specialist-slider-wrapper {
  background: var(--wp--preset--color--primary);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--wp--preset--color--border-color);
}

.pn-specialist-title {
  font-family: "Poppins", "Arial", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--wp--preset--color--heading);
  margin: 0 0 20px 0;
  line-height: 1.3;
  text-align: center;
}

/* ============================================
   CAROUSEL CONTAINER
   ============================================ */

.pn-specialist-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 50px,
    black calc(100% - 50px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 50px,
    black calc(100% - 50px),
    transparent 100%
  );
}

/* ============================================
   TRACK - VERTICAL SCROLL (DESKTOP)
   ============================================ */

.pn-specialist-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: max-content;
  animation: pn-scroll-vertical 40s linear infinite;
  padding: 20px 0;
}

@keyframes pn-scroll-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* ============================================
   SLIDES
   ============================================ */

.pn-specialist-slide {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.pn-specialist-slide:hover {
  transform: scale(1.03);
}

.pn-specialist-link {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.pn-specialist-link:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.pn-specialist-link:focus {
  outline: 2px solid var(--wp--preset--color--secondary);
  outline-offset: 3px;
}

.pn-specialist-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 2px solid var(--wp--preset--color--border-color);
  transition: border-color 0.3s ease;
}

.pn-specialist-link:hover .pn-specialist-img {
  border-color: var(--wp--preset--color--secondary);
}

/* ============================================
   PAUSE ON HOVER
   ============================================ */

.pn-specialist-carousel:hover .pn-specialist-track {
  animation-play-state: paused;
}

/* ============================================
   CTA CARD
   ============================================ */

.pn-specialist-cta-card {
  background: var(--wp--preset--color--secondary);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--wp--preset--color--border-color);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pn-specialist-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--wp--preset--color--heading);
  margin: 0;
  line-height: 1.3;
}

.pn-specialist-cta-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--wp--preset--color--text-color);
  margin: 0;
}

/* CTA Button - Orange style matching Contact Us "Send Message" button */
.pn-specialist-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background-color: #ff9800;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-top: 6px;
  box-shadow: 0 3px 10px rgba(255, 152, 0, 0.35);
  font-family: 'Poppins', sans-serif;
  border: none;
}

.pn-specialist-cta-button:hover {
  background-color: #ff6f00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.6);
  color: #1a1a1a;
}

.pn-specialist-cta-button:active {
  transform: translateY(0);
}

/* ============================================
   TABLET RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .pn-specialist-sidebar {
    top: 100px;
  }

  .pn-specialist-carousel {
    height: 350px;
  }
}

/* ============================================
   MOBILE RESPONSIVE - HORIZONTAL SCROLL
   ============================================ */

@media (max-width: 782px) {
  .pn-specialist-sidebar {
    position: relative;
    top: 0;
    gap: 20px;
  }

  .pn-specialist-slider-wrapper {
    padding: 24px 20px;
  }

  .pn-specialist-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  /* HORIZONTAL CAROUSEL */
  .pn-specialist-carousel {
    height: auto;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 40px,
      black calc(100% - 40px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 40px,
      black calc(100% - 40px),
      transparent 100%
    );
  }

  .pn-specialist-track {
    flex-direction: row;
    gap: 16px;
    width: max-content;
    height: auto;
    animation: pn-scroll-horizontal 35s linear infinite;
    padding: 16px 0;
  }

  @keyframes pn-scroll-horizontal {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  .pn-specialist-slide {
    width: 260px;
    flex-shrink: 0;
  }

  .pn-specialist-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
  }

  .pn-specialist-cta-card {
    padding: 24px 20px;
  }

  /* Full width button on mobile */
  .pn-specialist-cta-button {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {
  .pn-specialist-carousel {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 30px,
      black calc(100% - 30px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 30px,
      black calc(100% - 30px),
      transparent 100%
    );
  }

  .pn-specialist-slide {
    width: 220px;
  }

  .pn-specialist-img {
    height: 120px;
  }

  .pn-specialist-track {
    gap: 14px;
  }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .pn-specialist-track {
    animation: none !important;
  }

  .pn-specialist-slide,
  .pn-specialist-link,
  .pn-specialist-img,
  .pn-specialist-cta-button {
    transition: none !important;
    animation: none !important;
  }
}
