/* ═══════════════════════════════════════════════════════════════════════
   RVP Connect — Hero Banner Module CSS  v1.0
   Replaces the old static purple hero with an admin-managed image slider.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Front-Page Banner Slider ──────────────────────────────────────────── */
.rvp-hb-section {
  background: #fff;
  padding: 10px 14px 4px;
}

.rvp-hb-swiper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15,12,41,.12);
  --swiper-pagination-color: #fff;
  --swiper-pagination-bullet-inactive-color: rgba(255,255,255,.55);
  --swiper-pagination-bullet-inactive-opacity: 1;
}

.rvp-hb-swiper .swiper-wrapper { align-items: stretch; }

.rvp-hb-slide {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ede9fe;
  cursor: pointer;
}
.rvp-hb-slide img {
  width: 100%;
  height: 266px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
@media (min-width: 480px) { .rvp-hb-slide img { height: 315px; } }
@media (min-width: 768px) { .rvp-hb-slide img { height: 455px; } }
@media (min-width: 1024px) { .rvp-hb-slide img { height: 560px; } }

/* Minimal premium "tap for details" hint — icon-only glass badge, bottom-right */
.rvp-hb-tap-hint {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,12,41,.42);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
  color: #fff;
  pointer-events: none;
  transition: transform .25s ease;
}
.rvp-hb-slide:active .rvp-hb-tap-hint { transform: scale(.9); }

.rvp-hb-swiper .swiper-pagination {
  bottom: 8px !important;
}
.rvp-hb-swiper .swiper-pagination-bullet {
  width: 6px; height: 6px;
}
.rvp-hb-swiper .swiper-pagination-bullet-active {
  width: 16px; border-radius: 4px;
}

/* Empty-state hint shown only to admins when no slides exist yet */
.rvp-hb-empty-hint {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg,#f5f3ff,#ede9fe);
  border: 1.5px dashed #c4b5fd;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: .82rem;
  color: #5b21b6;
  font-weight: 600;
}
.rvp-hb-empty-hint a { color: #6C2BD9; text-decoration: underline; }

/* ── Admin Panel ──────────────────────────────────────────────────────── */
.rvp-hb-admin-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 14px 60px;
}

.rvp-hb-admin-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  margin-bottom: 24px;
}
.rvp-hb-admin-card h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px;
}

/* Upload dropzone */
.rvp-hb-dropzone {
  border: 2.5px dashed #c4b5fd;
  border-radius: 14px;
  background: #faf5ff;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.rvp-hb-dropzone:hover,
.rvp-hb-dropzone.drag-over {
  border-color: #7C3AED;
  background: #ede9fe;
}
.rvp-hb-dropzone svg { opacity: .45; margin-bottom: 10px; }
.rvp-hb-dropzone p {
  margin: 0;
  color: #64748b;
  font-size: .88rem;
  line-height: 1.6;
}
.rvp-hb-dropzone strong { color: #6C2BD9; }
#rvp-hb-file-input { display: none; }

.rvp-hb-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: linear-gradient(135deg,#6C2BD9,#7C3AED);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins','Inter',sans-serif;
  transition: opacity .2s;
}
.rvp-hb-upload-btn:hover { opacity: .88; }
.rvp-hb-upload-btn:disabled { opacity: .5; cursor: not-allowed; }

.rvp-hb-upload-progress { margin-top: 12px; display: none; }
.rvp-hb-progress-bar {
  height: 6px; background: #e2e8f0; border-radius: 6px; overflow: hidden;
}
.rvp-hb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,#6C2BD9,#a78bfa);
  width: 0%;
  transition: width .3s;
  border-radius: 6px;
}
.rvp-hb-progress-text { font-size: .78rem; color: #64748b; margin-top: 6px; }

/* Admin list of uploaded slides — one row per slide (image + link input) */
.rvp-hb-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rvp-hb-admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.rvp-hb-admin-item img {
  width: 84px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #e2e8f0;
}
.rvp-hb-admin-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rvp-hb-admin-item-body label {
  font-size: .68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rvp-hb-link-input {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: .82rem;
  width: 100%;
  font-family: 'Poppins','Inter',sans-serif;
  outline: none;
}
.rvp-hb-link-input:focus { border-color: #6C2BD9; }
.rvp-hb-admin-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.rvp-hb-del-btn, .rvp-hb-drag-handle {
  border: none;
  border-radius: 6px;
  color: #fff;
  width: 28px; height: 28px;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.rvp-hb-del-btn { background: rgba(239,68,68,.9); }
.rvp-hb-del-btn:hover { background: #dc2626; }
.rvp-hb-drag-handle { background: rgba(0,0,0,.55); cursor: grab; touch-action: none; }
.rvp-hb-admin-item.sortable-ghost { opacity: .3; }
.rvp-hb-admin-item.sortable-chosen { box-shadow: 0 0 0 3px #7C3AED; border-radius: 12px; }

.rvp-hb-admin-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: .9rem;
}

/* Snackbar */
.rvp-hb-snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #1e293b;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  z-index: 99999;
  transition: transform .3s, opacity .3s;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.rvp-hb-snackbar.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.rvp-hb-snackbar.success { background: #16a34a; }
.rvp-hb-snackbar.error   { background: #dc2626; }

/* Settings row */
.rvp-hb-settings-row { display: flex; flex-direction: column; gap: 14px; }
.rvp-hb-settings-row label {
  font-size: .82rem; font-weight: 700; color: #475569;
  display: flex; align-items: center; gap: 10px;
}
.rvp-hb-settings-row input[type=number] {
  border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 8px 12px;
  font-size: .9rem; width: 100px;
  font-family: 'Poppins','Inter',sans-serif; outline: none;
}
.rvp-hb-settings-row input:focus { border-color: #6C2BD9; }
.rvp-hb-save-settings {
  display: inline-flex; align-items: center; gap: 6px;
  background: #6C2BD9; color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: .88rem; font-weight: 700; cursor: pointer;
  font-family: 'Poppins','Inter',sans-serif; margin-top: 4px;
}
.rvp-hb-save-settings:hover { background: #7C3AED; }
