/* ==========================================================================
   Product Spotlight Card & Post CTA Styles
   Clean, authentic product spotlight cards & in-article CTAs
   ========================================================================== */

/* Pre-card Context Hook */
.product-card-hook {
  margin: 1.5rem 0 0.6rem 0;
  font-size: 0.95rem;
  color: #475569;
  font-style: italic;
}

/* --- Amazon-Style Product Spotlight Card --- */
.product-spotlight-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  background-color: #ffffff;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.75rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.product-spotlight-card:hover {
  border-color: #a6b0b5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Left Image Column */
.psc-image-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psc-thumbnail {
  width: 90px;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  display: block;
}

.product-spotlight-card:hover .psc-thumbnail {
  transform: translateY(-2px);
}

/* Right Content Column */
.psc-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.psc-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0369a1;
  background-color: #e0f2fe;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.psc-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.25rem 0;
}

.psc-title a {
  color: #0f1111 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.psc-title a:hover {
  color: #007185 !important;
  text-decoration: underline !important;
}

.psc-author {
  font-size: 0.85rem;
  color: #565959;
  margin-bottom: 0.4rem;
}

.psc-description {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Metadata Row: Price, Format, Rating */
.psc-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.psc-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.psc-stars {
  color: #de7921;
  font-size: 0.85rem;
  letter-spacing: -1px;
}

.psc-rating-count {
  color: #007185;
  font-size: 0.82rem;
  font-weight: 600;
}

.psc-divider {
  color: #cbd5e1;
  font-size: 0.8rem;
}

.psc-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1111;
}

.psc-format {
  color: #565959;
  font-size: 0.85rem;
}

/* Call to Action Link */
.psc-action {
  margin-top: 0.25rem;
}

.psc-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #007185 !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: color 0.15s ease, transform 0.15s ease;
}

.psc-cta-link:hover {
  color: #c7511f !important;
  text-decoration: underline !important;
  transform: translateX(2px);
}

/* --- Responsive adjustments for Spotlight Card --- */
@media (max-width: 580px) {
  .product-spotlight-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
  }

  .psc-image-col {
    align-self: center;
  }

  .psc-thumbnail {
    width: 80px;
    max-height: 110px;
  }

  .psc-title {
    font-size: 0.98rem;
  }
}

/* --- End-of-Post Author CTA Box (Compact Blue Box) --- */
.post-book-cta-box {
  margin: 2rem 0 1.25rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 8px;
  padding: 1.1rem 1.35rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.pb-cta-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.pb-cta-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.pb-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0369a1;
}

.pb-cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.pb-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pb-btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(180deg, #f7dfa5 0%, #f0c14b 100%);
  border: 1px solid #a88734;
  color: #111827 !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 5px;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pb-btn-amazon:hover {
  background: linear-gradient(180deg, #f5d78e 0%, #eeb933 100%);
  border-color: #846a29;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pb-btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155 !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 5px;
  text-decoration: none !important;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pb-btn-preview:hover {
  border-color: #0284c7;
  color: #0284c7 !important;
  background-color: #f8fafc;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .post-book-cta-box {
    padding: 1rem;
  }
  .pb-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .pb-cta-actions {
    width: 100%;
    flex-direction: row;
  }
  .pb-btn-amazon,
  .pb-btn-preview {
    flex: 1;
    justify-content: center;
  }
}

/* --- Social Share Button: Twitter / X Brand Color --- */
.btn--twitter {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.btn--twitter:visited {
  color: #ffffff !important;
}

.btn--twitter:hover {
  background-color: #272c30 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   AI Share & Summarize Section (Clean Minimal Design)
   ========================================================================== */
.page__ai-share {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.page__social-share {
  margin-top: 0;
}

.page__ai-title {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #64748b;
}

.ai-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.ai-icons-list {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ai-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #334155;
  text-decoration: none !important;
  opacity: 0.8;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  margin: 0;
}

.ai-icon-btn svg {
  display: block;
  transition: transform 0.2s ease;
}

.ai-icon-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.ai-icon-btn--chatgpt {
  color: #000000;
}

.ai-icon-btn--chatgpt:hover {
  color: #000000;
  opacity: 1;
}

.ai-icon-btn--perplexity:hover {
  color: #20808d;
}

.ai-icon-btn--claude:hover {
  transform: translateY(-2px) scale(1.05);
}

.ai-icon-btn--grok {
  color: #090909;
}

.ai-icon-btn--grok:hover {
  color: #090909;
  opacity: 1;
}

.ai-icon-btn--gemini:hover {
  transform: translateY(-2px) scale(1.05);
}

/* --- Clean Copy for LLM Pill Button (Matching Screenshot) --- */
.btn-copy-llm {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #ffffff;
  border: 1.5px solid #d0d7de;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  color: #1f2328;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  line-height: 1.3;
}

.btn-copy-llm:hover {
  background-color: #f6f8fa;
  border-color: #afb8c1;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.btn-copy-llm:active {
  transform: translateY(0);
}

.btn-copy-llm.copied {
  border-color: #86efac;
  background-color: #f0fdf4;
}

.copy-llm-icon {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ai-share-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .btn-copy-llm {
    width: 100%;
    justify-content: center;
  }
}

/* Dark Mode Compatibility */
@media (prefers-color-scheme: dark) {
  .page__ai-share {
    border-bottom-color: #334155;
  }

  .page__ai-title {
    color: #94a3b8;
  }

  .ai-icon-btn {
    color: #cbd5e1;
  }

  .ai-icon-btn--grok:hover {
    color: #ffffff;
  }

  .btn-copy-llm {
    background-color: #1e293b;
    border-color: #475569;
    color: #f8fafc;
  }

  .btn-copy-llm:hover {
    background-color: #334155;
    border-color: #64748b;
  }

  .btn-copy-llm.copied {
    border-color: #22c55e;
    background-color: #064e3b;
  }
}


