/* ============================================
   PREMIUM PRODUCT COMPARISON CARD STYLES
   (Adapted for the main Broc Web App)
   ============================================ */

.chat-embedded-action-card.comparison-embedded {
    margin: 1.5rem 0 !important;
    display: flex;
    justify-content: center;
    width: 100%;
    animation: cardEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.premium-comparison-container {
    width: 100%;
    max-width: 440px;
    background: var(--comparison-bg);
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--comparison-border);
    font-family: 'Outfit', sans-serif;
    color: var(--comparison-text-primary);
}

.premium-header {
    padding: 1.75rem 1.75rem 1rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-icon-box {
    background: var(--comparison-accent-light);
    padding: 0.375rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-header h1 {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    color: var(--comparison-text-secondary) !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
}

.premium-header-badge {
    padding: 0.25rem 0.75rem;
    background: var(--comparison-card-inner-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--comparison-accent);
    text-transform: uppercase;
}

.premium-recommendation {
    padding: 0 1.5rem 1rem 1.5rem;
}

.premium-recommendation-card {
    position: relative;
    background: var(--comparison-card-inner-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--comparison-border);
    display: flex;
    gap: 1rem;
}

.premium-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.premium-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.premium-avatar-check {
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    background: #2563eb;
    border-radius: 9999px;
    padding: 2px;
    border: 2px solid white;
    display: flex;
}

.premium-recommendation-content h2 {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--comparison-accent) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 0.25rem 0 !important;
    border: none !important;
    padding: 0 !important;
    background: none !important;
}

.premium-recommendation-content p {
    font-size: 0.875rem;
    color: var(--comparison-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.premium-bold-blue {
    font-weight: 700;
    color: var(--comparison-accent);
}

.premium-product-list {
    padding: 0 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.premium-product-card {
    position: relative;
    background: white;
    transition: all 0.3s ease;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
}

.premium-product-card.is-recommended {
    border-color: #bfdbfe;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.premium-product-card:not(.is-recommended):hover {
    border-color: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.05);
}

.premium-product-body {
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.premium-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.premium-retailer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.premium-retailer-logo {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.premium-retailer-logo.amazon {
    background: #fff7ed;
    color: #ea580c;
}

.premium-retailer-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 !important;
}

.premium-product-tag {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.tag-best-price {
    background: #ecfdf5;
    color: #047857;
}

.tag-affiliate {
    background: #f3e8ff;
    color: #7e22ce;
}

.premium-price-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1;
    margin: 0;
}

.premium-product-desc {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.6;
    padding-right: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.premium-card-actions-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f8fafc;
}

.premium-details-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.premium-details-btn:hover {
    color: #2563eb;
}

.premium-view-deal-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-view-deal-btn.primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 8px 15px -3px rgba(37, 99, 235, 0.25);
}

.premium-view-deal-btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.premium-view-deal-btn.secondary {
    background: #f1f5f9;
    color: #334155;
}

.premium-view-deal-btn.secondary:hover {
    background: #e2e8f0;
}

.premium-card-footer-actions {
    padding: 0 1.5rem 1.75rem 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.premium-action-btn {
    flex: 1;
    padding: 0.875rem;
    border-radius: 1.125rem;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
}

.premium-btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.premium-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.4);
}

.premium-btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #1e3a8a;
}

.premium-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: white;
}

.premium-btn-saved {
    background: #ecfdf5;
    color: #059669;
    cursor: default;
}

.premium-footer {
    padding: 0 2rem 1.5rem 2rem;
    text-align: center;
}

.premium-footer p {
    font-size: 9px;
    color: rgba(30, 58, 138, 0.35);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
}

.lucide {
    stroke-width: 2.5;
}

/* ==========================================================================
   GLASSMORPHIC PRICE COMPARISON & RECOMMENDATION CARD STYLES
   ========================================================================== */

/* Glass Product Card overrides */
.premium-product-card {
    position: relative !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.02),
      inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Recommended option special premium glow & ring border */
.premium-product-card.is-recommended {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1.5px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.12),
      inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

/* Hover state scale & glow */
.premium-product-card:hover {
    transform: translateY(-3px) scale(1.015) !important;
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 
      0 12px 30px rgba(59, 130, 246, 0.15),
      inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
}

/* Dark mode compatibility for glass product cards */
[data-theme="dark"] .premium-product-card,
.dark-mode .premium-product-card {
    background: rgba(24, 34, 54, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .premium-product-card.is-recommended,
.dark-mode .premium-product-card.is-recommended {
    background: rgba(24, 34, 54, 0.55) !important;
    border: 1.5px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 
      0 8px 25px rgba(59, 130, 246, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .premium-product-card:hover,
.dark-mode .premium-product-card:hover {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 
      0 12px 30px rgba(59, 130, 246, 0.35),
      inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
}

/* Glass Recommendation Card */
.premium-recommendation-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.02),
      inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
    border-radius: 1.5rem !important;
}

[data-theme="dark"] .premium-recommendation-card,
.dark-mode .premium-recommendation-card {
    background: rgba(24, 34, 54, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
}

/* High contrast product details text */
.premium-retailer-name {
    color: var(--brokerly-text-primary, #0f172a) !important;
}
[data-theme="dark"] .premium-retailer-name,
.dark-mode .premium-retailer-name {
    color: #f8fafc !important;
}

.premium-price-text {
    color: var(--brokerly-text-primary, #0f172a) !important;
}
[data-theme="dark"] .premium-price-text,
.dark-mode .premium-price-text {
    color: #f8fafc !important;
}

.premium-product-desc {
    color: var(--brokerly-text-secondary, #64748b) !important;
}
[data-theme="dark"] .premium-product-desc,
.dark-mode .premium-product-desc {
    color: #cbd5e1 !important;
}

.premium-recommendation-content p {
    color: var(--brokerly-text-secondary, #64748b) !important;
}
[data-theme="dark"] .premium-recommendation-content p,
.dark-mode .premium-recommendation-content p {
    color: #cbd5e1 !important;
}

/* Separator lines inside glass cards */
.premium-card-actions-wrapper {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}
[data-theme="dark"] .premium-card-actions-wrapper,
.dark-mode .premium-card-actions-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Retailer Logo backing */
.premium-retailer-logo {
    background: rgba(0, 0, 0, 0.03) !important;
    color: var(--brokerly-text-secondary, #64748b) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}
[data-theme="dark"] .premium-retailer-logo,
.dark-mode .premium-retailer-logo {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Button & Action Link Adaptations */
.premium-details-btn {
    color: var(--brokerly-text-tertiary, #94a3b8) !important;
}
.premium-details-btn:hover {
    color: var(--brokerly-primary, #3b82f6) !important;
}

.premium-view-deal-btn.secondary {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--brokerly-text-primary, #334155) !important;
}
.premium-view-deal-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="dark"] .premium-view-deal-btn.secondary,
.dark-mode .premium-view-deal-btn.secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f1f5f9 !important;
}
[data-theme="dark"] .premium-view-deal-btn.secondary:hover,
.dark-mode .premium-view-deal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Outer button and badges */
.premium-btn-secondary {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: var(--brokerly-primary, #1e3a8a) !important;
}
.premium-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: white !important;
}
[data-theme="dark"] .premium-btn-secondary,
.dark-mode .premium-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}
[data-theme="dark"] .premium-btn-secondary:hover,
.dark-mode .premium-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.premium-avatar {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}
[data-theme="dark"] .premium-avatar,
.dark-mode .premium-avatar {
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 768px) {
  .premium-comparison-container {
    border-radius: 1.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
  }
  
  .premium-header {
    padding: 1rem 1rem 0.5rem 1rem !important;
  }
  
  .premium-recommendation {
    padding: 0 1rem 0.75rem 1rem !important;
  }
  
  .premium-recommendation-card {
    padding: 0.875rem !important;
    gap: 0.75rem !important;
    border-radius: 1rem !important;
  }
  
  .premium-avatar {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }
  
  .premium-recommendation-content p {
    font-size: 0.75rem !important;
  }
  
  .premium-product-list {
    padding: 0 1rem 0.75rem 1rem !important;
    gap: 0.5rem !important;
  }
  
  .premium-product-card {
    border-radius: 1rem !important;
  }
  
  .premium-product-body {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }
  
  .premium-price-text {
    font-size: 1rem !important;
  }
  
  .premium-retailer-name {
    font-size: 0.8125rem !important;
  }
  
  .premium-product-desc {
    font-size: 0.75rem !important;
    padding-right: 0.5rem !important;
  }
  
  .premium-view-deal-btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.625rem !important;
  }
  
  .premium-retailer-logo {
    width: 1.75rem !important;
    height: 1.75rem !important;
    border-radius: 0.5rem !important;
    font-size: 9px !important;
  }
}