/* ╔══════════════════════════════════════════════════════════╗
   ║  Roopalia AI — Shared Chatbot Styles                     ║
   ║  Product Cards, Animations, Enhanced UI                   ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ─── Product Recommendation Cards (Step 8) ─── */
.roopalia-products {
  background: linear-gradient(135deg, #fff9ec, #fff0f4);
  border: 1.5px solid rgba(196,154,60,0.25);
  border-radius: 14px;
  padding: 0.8rem;
  margin-top: 0.3rem;
  align-self: flex-start;
  max-width: 90%;
  animation: rpSlideIn 0.3s ease;
}

@keyframes rpSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rp-header {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  color: #b8860b;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.rp-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: white;
  border: 1px solid rgba(240, 213, 208, 0.6);
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.4rem;
  transition: all 0.2s;
}

.rp-card:hover {
  box-shadow: 0 4px 12px rgba(181,56,74,0.08);
  transform: translateY(-1px);
}

.rp-card:last-of-type {
  margin-bottom: 0.3rem;
}

.rp-icon {
  font-size: 1.5rem;
  min-width: 32px;
  text-align: center;
}

.rp-info {
  flex: 1;
  min-width: 0;
}

.rp-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1c0a0e;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.rp-benefit {
  font-size: 0.65rem;
  color: #9a7070;
  line-height: 1.4;
}

.rp-price {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2e7d32;
  margin-top: 0.1rem;
}

.rp-buy {
  background: linear-gradient(135deg, #ff9900, #e68a00);
  color: white !important;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  font-family: 'Hind', sans-serif;
  box-shadow: 0 2px 6px rgba(255,153,0,0.25);
}

.rp-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255,153,0,0.35);
}

.rp-disclosure {
  font-size: 0.58rem;
  color: #b0a0a0;
  text-align: center;
  margin-top: 0.2rem;
  font-style: italic;
}

/* ─── Enhanced Chat Animations ─── */
.msg-bot {
  animation: msgFadeIn 0.3s ease;
}

.msg-user {
  animation: msgFadeIn 0.2s ease;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Improved Send Button (Step 13) ─── */
.chat-send {
  transition: all 0.2s ease !important;
}

.chat-send:active {
  transform: scale(0.92);
}

/* ─── AdSense Placeholder Slots (Step 9) ─── */
.ad-slot {
  background: #fdf0f1;
  border: 1.5px dashed rgba(181,56,74,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #cba0a0;
}

.ad-slot-sidebar {
  margin-bottom: 1.5rem;
}

.ad-slot-article {
  margin: 2rem auto;
  max-width: 680px;
}

/* ─── Mobile Optimizations ─── */
@media (max-width: 600px) {
  .roopalia-products {
    max-width: 95%;
    padding: 0.6rem;
  }

  .rp-card {
    padding: 0.5rem;
    gap: 0.4rem;
  }

  .rp-title {
    font-size: 0.68rem;
  }

  .rp-benefit {
    font-size: 0.6rem;
  }

  .rp-buy {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }
}
