/**
 * Conversion Optimization CSS — GuidaScelta.it
 * Tecniche CRO per massimizzare click su link affiliazione Amazon
 * Basato su ricerche Wirecutter, AuthorityHacker, Lasso (2025-2026)
 */

/* === ENHANCED CTA BUTTON === */

.btn-amazon-cta {
  background: linear-gradient(180deg, #ffad33 0%, #ff9900 100%);
  color: #111 !important;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1.1rem 2.25rem;
  border-radius: 10px;
  border: none;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  min-height: 56px;
  width: 100%;
  text-align: center;
  position: relative;
  letter-spacing: 0.3px;
}

.btn-amazon-cta:hover {
  background: linear-gradient(180deg, #ffc266 0%, #ffad33 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #111 !important;
  text-decoration: none !important;
}

.btn-amazon-cta:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 1px 4px rgba(255, 153, 0, 0.3);
}

/* Subtle pulse animation to draw the eye */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3); }
  50% { box-shadow: 0 4px 16px rgba(255, 153, 0, 0.5); }
}

.btn-amazon-cta.pulse {
  animation: cta-pulse 3s ease-in-out infinite;
}

/* === TOP PICK / LA NOSTRA SCELTA BOX === */

.top-pick-box {
  position: relative;
  background: #fff;
  border: 3px solid #ff9900;
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  margin: 1.5rem 0 2.5rem;
  box-shadow: 0 8px 30px rgba(255, 153, 0, 0.12);
}

.top-pick-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: linear-gradient(135deg, #ff9900 0%, #e88b00 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 20px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
  font-family: 'Montserrat', sans-serif;
}

.top-pick-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.top-pick-image {
  flex-shrink: 0;
}

.top-pick-image img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}

.top-pick-info {
  flex: 1;
}

.top-pick-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.top-pick-reason {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.top-pick-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.top-pick-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ff9900;
}

.top-pick-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 14px;
  border-radius: 20px;
}

.top-pick-info .btn-amazon-cta {
  max-width: 320px;
}

.price-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 8px;
  font-style: italic;
}

@media (max-width: 768px) {
  .top-pick-box {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .top-pick-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .top-pick-image img {
    width: 140px;
    height: 140px;
  }

  .top-pick-meta {
    justify-content: center;
  }

  .top-pick-info .btn-amazon-cta {
    max-width: 100%;
    width: 100%;
  }
}

/* === TRUST SIGNALS UNDER CTAs === */

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.trust-signals span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #64748b;
}

.trust-signals .trust-check {
  color: #10b981;
  font-weight: 700;
}

/* === URGENCY MICRO-COPY === */

.urgency-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #92400e;
  background: #fffbeb;
  padding: 8px 14px;
  border-radius: 8px;
  margin: 8px 0 0;
  border: 1px solid #fde68a;
}

/* === CONCLUSION CTA BOX === */

.conclusion-box {
  background: linear-gradient(135deg, #1a365d 0%, #2563eb 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.conclusion-box h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.conclusion-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.conclusion-box .btn-amazon-cta {
  max-width: 400px;
  margin: 0 auto;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.conclusion-box .price-note {
  color: rgba(255, 255, 255, 0.6);
}

/* === MOBILE STICKY CTA BAR === */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid #ff9900;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 10px 16px;
  z-index: 1040;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: none;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.sticky-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sticky-cta-text strong {
  font-size: 0.85rem;
  color: #1a365d;
}

.sticky-cta-text span {
  font-size: 0.7rem;
  color: #ff9900;
  font-weight: 600;
}

.sticky-cta .btn-amazon-cta {
  flex-shrink: 0;
  width: auto;
  padding: 10px 20px;
  font-size: 0.85rem;
  min-height: 44px;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
}

/* Avoid overlap with cookie banner */
.cookie-banner.visible ~ .sticky-cta {
  bottom: 80px;
}

/* === COMPARISON TABLE CTA BUTTONS === */

.comparison-table .btn-amazon,
.comparison-table .btn.btn-amazon {
  background: linear-gradient(180deg, #ffad33 0%, #ff9900 100%) !important;
  color: #111 !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  white-space: nowrap;
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.25);
  transition: all 0.2s ease;
}

.comparison-table .btn-amazon:hover,
.comparison-table .btn.btn-amazon:hover {
  background: linear-gradient(180deg, #ffc266 0%, #ffad33 100%) !important;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.35);
}

/* === ENHANCED COMPARISON TABLE ROW HIGHLIGHT === */

.table-row-best {
  background: rgba(255, 153, 0, 0.06) !important;
}

.table-row-best td:first-child {
  border-left: 4px solid #ff9900;
}

.table-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.table-score-high { background: #10b981; }
.table-score-mid  { background: #f59e0b; }

/* === IN-TEXT AFFILIATE LINKS === */

.affiliate-link {
  color: #1a365d;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #ff9900;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: all 0.2s ease;
}

.affiliate-link:hover {
  color: #ff9900;
  background: rgba(255, 153, 0, 0.08);
  border-radius: 3px;
}

/* === AMAZON BOUNTY PRIME BOX === */

.prime-bounty-box {
  background: linear-gradient(135deg, #232f3e 0%, #37475a 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.prime-bounty-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 153, 0, 0.08);
  border-radius: 50%;
}

.prime-bounty-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prime-bounty-icon svg {
  width: 56px;
  height: 56px;
}

.prime-bounty-text {
  flex: 1;
}

.prime-bounty-text h4 {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.prime-bounty-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.prime-bounty-text .prime-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.prime-bounty-text .prime-features span::before {
  content: "✓ ";
  color: #ff9900;
  font-weight: 700;
}

.prime-bounty-cta {
  flex-shrink: 0;
}

.prime-bounty-cta .btn-amazon-cta {
  width: auto;
  white-space: nowrap;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}

.prime-bounty-free {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

@media (max-width: 768px) {
  .prime-bounty-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .prime-bounty-icon {
    width: 48px;
    height: 48px;
  }

  .prime-bounty-icon svg {
    width: 42px;
    height: 42px;
  }

  .prime-bounty-text .prime-features {
    justify-content: center;
  }

  .prime-bounty-cta .btn-amazon-cta {
    width: 100%;
  }
}

/* === BOUNTY SERVICE CARDS (for /servizi-amazon/) === */

.bounty-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bounty-card:hover {
  border-color: #ff9900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.bounty-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bounty-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bounty-card-icon.prime { background: linear-gradient(135deg, #00a8e1, #0073aa); }
.bounty-card-icon.audible { background: linear-gradient(135deg, #f7991c, #e8850a); }
.bounty-card-icon.music { background: linear-gradient(135deg, #25d1da, #1db8c1); }
.bounty-card-icon.kindle { background: linear-gradient(135deg, #1a8fcb, #1278b0); }
.bounty-card-icon.video { background: linear-gradient(135deg, #1a98ff, #0d7be5); }
.bounty-card-icon.student { background: linear-gradient(135deg, #00a8e1, #0073aa); }

.bounty-card-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.bounty-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 0;
}

.bounty-card-subtitle {
  font-size: 0.85rem;
  color: #64748b;
}

.bounty-card-price {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
  border: 1px solid #bbf7d0;
}

.bounty-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.bounty-card-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  padding-left: 1.5rem;
  position: relative;
}

.bounty-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

.bounty-card-features li:last-child {
  border-bottom: none;
}

.bounty-card .btn-amazon-cta {
  margin-top: auto;
}

.bounty-card .price-note {
  text-align: center;
}

/* === AMAZON SERVICES MINI-BANNER (for landing pages) === */

.services-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.services-banner-icons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.services-banner-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.1rem;
}

.services-banner-icons .sb-audible { background: linear-gradient(135deg, #f7991c, #e8850a); color: #fff; }
.services-banner-icons .sb-music { background: linear-gradient(135deg, #25d1da, #1db8c1); color: #fff; }
.services-banner-icons .sb-kindle { background: linear-gradient(135deg, #1a8fcb, #1278b0); color: #fff; }
.services-banner-icons .sb-video { background: linear-gradient(135deg, #1a98ff, #0d7be5); color: #fff; }

.services-banner-text {
  flex: 1;
}

.services-banner-text strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #1a365d;
  margin-bottom: 2px;
}

.services-banner-text span {
  font-size: 0.85rem;
  color: #64748b;
}

.services-banner-cta {
  flex-shrink: 0;
}

.services-banner-cta a {
  display: inline-block;
  background: linear-gradient(180deg, #ffad33 0%, #ff9900 100%);
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.services-banner-cta a:hover {
  background: linear-gradient(180deg, #ffc266 0%, #ffad33 100%);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .services-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    gap: 1rem;
  }

  .services-banner-icons {
    justify-content: center;
  }

  .services-banner-cta a {
    width: 100%;
    display: block;
    text-align: center;
  }
}

/* === COOKIE BANNER (duplicated from components.css for landing pages) === */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a202c;
  color: #fff;
  padding: 1.25rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #ff9900;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner-actions .btn-cookie-reject {
  background: transparent;
  color: #a0aec0;
  border: 1px solid #4a5568;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-banner-actions .btn-cookie-reject:hover {
  background: #2d3748;
  color: #fff;
  border-color: #718096;
}

.cookie-banner-actions .btn-cookie-accept {
  background: linear-gradient(180deg, #ffad33 0%, #ff9900 100%);
  color: #111;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-banner-actions .btn-cookie-accept:hover {
  background: linear-gradient(180deg, #ffc266 0%, #ffad33 100%);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .cookie-banner-content {
    flex-direction: column;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions button {
    flex: 1;
  }
}
