/* EXP-115: Affiliate Link A/B Test - Button vs. Text Styles */

/* Affiliate Button Style (CTAs) */
.affiliate-button {
  display: inline-block;
  padding: 12px 24px;
  margin: 8px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  cursor: pointer;
}

.affiliate-button:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
}

.affiliate-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Affiliate Text Style (subtle links) */
.affiliate-text {
  color: #667eea;
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

.affiliate-text:hover {
  color: #764ba2;
  text-decoration: underline;
}

.affiliate-text::after {
  content: ' →';
  opacity: 0;
  transition: opacity 0.3s ease;
}

.affiliate-text:hover::after {
  opacity: 1;
}

/* Affiliate Container (for grouping links) */
.affiliate-links-container {
  margin: 16px 0;
  padding: 12px;
  border-left: 4px solid #667eea;
  background-color: rgba(102, 126, 234, 0.05);
  border-radius: 4px;
}

.affiliate-links-container p {
  margin: 8px 0;
  font-size: 14px;
}

/* Button variant within container */
.affiliate-links-container .affiliate-button {
  display: block;
  text-align: center;
  margin: 10px 0;
}

/* Text variant within container */
.affiliate-links-container .affiliate-text {
  display: inline-block;
  margin: 8px 0;
}

/* Alternative button style (solid background) */
.affiliate-button-solid {
  display: inline-block;
  padding: 11px 22px;
  margin: 8px 0;
  background-color: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.affiliate-button-solid:hover {
  background-color: #764ba2;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
  color: white;
}

.affiliate-button-solid:active {
  box-shadow: 0 1px 4px rgba(102, 126, 234, 0.25);
}

/* Tracking wrapper (for analytics) */
.affiliate-link-tracked {
  /* Can be applied to any link that needs tracking */
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .affiliate-button,
  .affiliate-button-solid {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 12px;
  }
  
  .affiliate-links-container {
    padding: 10px;
    margin: 12px 0;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .affiliate-links-container {
    background-color: rgba(102, 126, 234, 0.1);
    border-left-color: #8b9ffe;
  }
  
  .affiliate-text {
    color: #8b9ffe;
  }
  
  .affiliate-text:hover {
    color: #b5c6ff;
  }
  
  .affiliate-button {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  }
  
  .affiliate-button:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
  }
}
