/* Youtuber Tool Section Styles */

.youtuber-tool {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-50) 100%);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle background decoration - removed redundant elements */

.youtuber-tool__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.youtuber-tool__header {
  text-align: center;
  margin-bottom: 72px;
}

.youtuber-tool__title {
  font-family: var(--font-family-heading);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0;
  position: relative;
  display: inline-block;
}


@media (min-width: 768px) {
  .youtuber-tool__title {
    font-size: 48px;
  }
}

.youtuber-tool__steps {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Dashed connecting line between steps - starts from center of first number to center of last */
@media (min-width: 768px) {
  .youtuber-tool__steps::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 36px;
    height: calc(100% - 72px - 220px);
    width: 2px;
    background-image: repeating-linear-gradient(
      to bottom,
      #d1d5db 0px,
      #d1d5db 3px,
      transparent 8px,
      transparent 16px
    );
    z-index: 0;
  }

  /* Animated progress line that fills in as you scroll */
  .youtuber-tool__steps::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 36px;
    height: var(--line-progress, 0%);
    max-height: calc(100% - 72px - 220px);
    width: 2px;
    background-image: repeating-linear-gradient(
      to bottom,
      #ff0000 0px,
      #ff0000 3px,
      transparent 8px,
      transparent 16px
    );
    z-index: 0;
    transition: height 0.1s ease-out;
  }
}

.tool-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  margin-bottom: 64px;
}

.tool-step:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .tool-step {
    grid-template-columns: auto 1fr 1.1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .tool-step {
    grid-template-columns: auto 0.9fr 1.1fr;
    gap: 60px;
  }
}

.tool-step__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fafafa;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-heading);
  font-size: 28px;
  font-weight: 700;
  color: #d1d5db;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Active state when scrolled into view */
.tool-step__number.active {
  background: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
  border: 2px solid #ff4444;
  color: #ffffff;
  box-shadow: 
    0 3px 10px rgba(255, 0, 0, 0.18),
    0 0 0 0 rgba(255, 0, 0, 0.3),
    0 0 15px rgba(255, 0, 0, 0.1);
  animation: numberPulse 1.5s ease-in-out;
}

/* Glowing pulse effect for active numbers */
.tool-step__number.active::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.12);
  animation: ripple 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}


@keyframes numberPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 767px) {
  .tool-step__number {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
}

.tool-step__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.tool-step__heading {
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #111827;
  margin: 0;
  position: relative;
  opacity: 1;
  transform: translateX(0);
}


@media (min-width: 768px) {
  .tool-step__heading {
    font-size: 26px;
  }
}

@media (min-width: 1024px) {
  .tool-step__heading {
    font-size: 28px;
  }
}

.tool-step__description {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #6b7280;
  margin: 0 0 24px 0;
  opacity: 1;
  transform: translateX(0);
}


/* Tool Step CTA Button */
.tool-step__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff0000 0%, #e60000 100%);
  color: var(--color-white);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(255, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 1;
  transform: translateX(0);
  width: auto;
  min-width: fit-content;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.tool-step__cta:hover {
  background: linear-gradient(135deg, #ff1a1a 0%, #ff0000 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(255, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 3px rgba(255, 0, 0, 0.1);
}

.tool-step__cta:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 4px rgba(255, 0, 0, 0.25),
    0 0 0 3px rgba(255, 0, 0, 0.1),
    inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tool-step__cta-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  font-weight: 800;
  flex-shrink: 0;
}

.tool-step__cta-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
  font-weight: 600;
  flex-shrink: 0;
}

.tool-step__cta:hover .tool-step__cta-icon {
  transform: scale(1.05);
  opacity: 1;
}

.tool-step__cta:hover .tool-step__cta-arrow {
  transform: translateX(4px);
  opacity: 1;
}

@media (min-width: 768px) {
  .tool-step__description {
    font-size: 17px;
    line-height: 1.7;
  }
}

.tool-step__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #f3f4f6;
  box-shadow: 
    0 1px 3px 0 rgba(0, 0, 0, 0.05),
    0 10px 20px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-step__visual:hover {
  transform: translateY(-4px);
  border-color: #fee2e2;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 20px 30px -10px rgba(255, 0, 0, 0.08);
}

.tool-step__visual:hover::before {
  opacity: 1;
}

/* Remove overflow hidden for 2nd step to allow spy image to overflow */
.tool-step:nth-child(2) .tool-step__visual {
  overflow: visible;
}

/* Spy image for 2nd step (24/7 scanning) */
.tool-step:nth-child(2) .tool-step__visual::after {
  content: '';
  position: absolute;
  top: -90px;
  right: 65%;
  width: 140px;
  height: 140px;
  background-image: url('../assets/spy.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Create image for 4th step (Create Content) */
.tool-step:nth-child(4) .tool-step__visual {
  overflow: visible;
}

.tool-step:nth-child(4) .tool-step__visual::after {
  content: '';
  position: absolute;
  top: -100px;
  right: 7.5%;
  width: 140px;
  height: 140px;
  background-image: url('../assets/create.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Subtle gradient overlay */
.tool-step__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 0, 0, 0.02) 0%, 
    transparent 50%, 
    rgba(255, 0, 0, 0.01) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Image styling for actual feature images */
.tool-step__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .tool-step__visual {
    align-self: center;
  }
}


.visual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
  position: relative;
}

.visual-placeholder__icon-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.visual-placeholder__icon-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 0, 0, 0.1),
    rgba(255, 0, 0, 0),
    rgba(255, 0, 0, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-step__visual:hover .visual-placeholder__icon-wrapper {
  transform: scale(1.05);
}

.tool-step__visual:hover .visual-placeholder__icon-wrapper::before {
  opacity: 1;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.visual-placeholder__icon {
  width: 48px;
  height: 48px;
  color: #9ca3af;
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.tool-step__visual:hover .visual-placeholder__icon {
  color: #ff0000;
  transform: scale(1.1);
}

.visual-placeholder__text {
  font-family: var(--font-family-primary);
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.tool-step__visual:hover .visual-placeholder__text {
  color: #ff0000;
}


/* Responsive adjustments */
@media (max-width: 767px) {
  .youtuber-tool {
    padding: 72px 0;
  }
  
  .youtuber-tool__header {
    margin-bottom: 56px;
  }
  
  .youtuber-tool__title {
    font-size: 32px;
  }
  
  .tool-step {
    gap: 20px;
    margin-bottom: 56px;
  }
  
  .visual-placeholder__icon-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .visual-placeholder__icon {
    width: 40px;
    height: 40px;
  }
  
  .visual-placeholder__text {
    font-size: 12px;
  }
}

@media (max-width: 639px) {
  .youtuber-tool {
    padding: 60px 0;
  }
  
  .youtuber-tool__header {
    margin-bottom: 48px;
  }
  
  .youtuber-tool__title {
    font-size: 28px;
  }
  
  .tool-step {
    margin-bottom: 48px;
  }
  
  .tool-step__heading {
    font-size: 22px;
  }
  
  .tool-step__description {
    font-size: 15px;
  }
  
  .visual-placeholder__icon-wrapper {
    width: 72px;
    height: 72px;
  }
  
  .visual-placeholder__icon {
    width: 36px;
    height: 36px;
  }
  
  .tool-step__cta {
    font-size: 12px;
    padding: 10px 16px;
    gap: 6px;
  }
  
  .tool-step__cta-icon {
    width: 14px;
    height: 14px;
  }
  
  .tool-step__cta-arrow {
    width: 14px;
    height: 14px;
  }
}


