/* PhotoSales Studio 4.3.20 - Smart Recommendations UI Refresh
   Isolated public-gallery styles. No admin/workspace layout rules. */

.smart-recommendations {
  margin: 32px 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #dbe5f1;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  color: #172033;
}

.smart-recommendations .smart-recommendations-head h2 {
  margin: 4px 0 7px;
  color: #153b73 !important;
  font-weight: 800;
  line-height: 1.2;
}

.smart-recommendations .smart-recommendations-head p {
  color: #475569 !important;
  line-height: 1.55;
}

.smart-recommendations .smart-recommendations-head .eyebrow {
  color: #245ca8 !important;
  font-weight: 850;
}

.smart-recommendations .badge-soft {
  flex: 0 0 auto;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4f91 !important;
  font-weight: 800;
}

.smart-recommendations-grid {
  gap: 16px;
}

.smart-recommendation-card {
  position: relative;
  border: 1px solid #dbe5f1;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.075);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.smart-recommendation-card:hover,
.smart-recommendation-card:focus-within {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.15);
}

.smart-recommendation-preview {
  overflow: hidden;
  background: #e9eff7;
}

.smart-recommendation-preview img {
  transition: transform .3s ease;
}

.smart-recommendation-card:hover .smart-recommendation-preview img,
.smart-recommendation-card:focus-within .smart-recommendation-preview img {
  transform: scale(1.035);
}

.smart-recommendation-copy {
  gap: 8px;
  padding: 14px;
  color: #172033;
}

.smart-recommendation-copy > strong {
  display: block;
  color: #172033 !important;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.35;
}

.smart-recommendation-copy > small {
  display: block;
  color: #526176 !important;
  font-size: .82rem;
  line-height: 1.4;
}

.smart-recommendation-add,
.smart-recommendation-add.btn {
  min-height: 40px;
  margin-top: 5px;
  border: 1px solid #2563eb;
  border-radius: 11px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .20);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.smart-recommendation-add:hover,
.smart-recommendation-add:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 10px 20px rgba(37, 99, 235, .28);
}

.smart-recommendation-preview:focus-visible,
.smart-recommendation-add:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .smart-recommendations {
    margin: 24px 0;
    padding: 18px 14px;
    border-radius: 18px;
  }

  .smart-recommendations-grid {
    gap: 12px;
  }

  .smart-recommendation-copy {
    padding: 12px;
  }

  .smart-recommendation-add,
  .smart-recommendation-add.btn {
    min-height: 44px;
    font-size: .86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-recommendation-card,
  .smart-recommendation-preview img,
  .smart-recommendation-add {
    transition: none !important;
  }
}
