/* =========================
   MdmHost Reviews – FULL CSS
   ========================= */

/* Root wrapper */
.mdmhost-reviews{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  max-width:1200px;
  margin:0 auto;
  box-sizing:border-box;
  overflow:visible;
}

/* Kill theme link decorations/colors inside the widget */
.mdmhost-reviews a,
.mdmhost-reviews a:hover,
.mdmhost-reviews a:focus,
.mdmhost-reviews a:visited{
  text-decoration:none!important;
  box-shadow:none!important;
  background-image:none!important;
  border-bottom:0!important;
  color:inherit!important;
}

/* ===== Framed slider container ===== */
#mdmhost-reviews-slider-container,
.mdmhost-reviews-slider-container{
  position:relative;
  overflow:visible!important;        /* allow hover lift; no inner scrollbars */
  background:#fff;
  border:1px solid #e9e9e9;
  border-radius:14px;
  box-shadow:0 10px 40px rgba(16,24,40,.08);
  padding:28px;
  padding-bottom:22px;
  margin:22px 0;
}

/* Track / rail */
#mdmhost-reviews-slider,
.mdmhost-reviews-slider{
  overflow-x:hidden!important;
  overflow-y:visible!important;      /* no vertical scrollbar */
  height:auto!important;
  max-height:none!important;
  -ms-overflow-style:none!important; /* IE/old Edge */
  scrollbar-width:none!important;    /* Firefox */
}
#mdmhost-reviews-slider::-webkit-scrollbar,
.mdmhost-reviews-slider::-webkit-scrollbar{ width:0; height:0; display:none; }

.mdmhost-reviews-wrapper{
  display:flex;
  overflow:visible;
  padding-bottom:6px;                /* ensure card bottom border shows */
}

/* ===== Card/link ===== */
.mdmhost-reviews-card-link{
  display:block; flex-shrink:0; box-sizing:border-box;
  padding:0 12px; width:100%; height:100%; position:relative; z-index:0;
}
.mdmhost-reviews-card-link:hover{ z-index:10; }

/* Card (flex column; author pinned at bottom) */
.mdmhost-reviews-card{
  background:#fff;
  background-image:none!important;
  border:1px solid #e6e6e6;
  border-radius:12px;
  box-sizing:border-box;
  padding:22px 22px 26px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;

  min-height:226px;                  /* allow grow when needed */
  height:auto;
  overflow:visible;

  margin-bottom:0;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Body area (stars + title + excerpt) */
.mdmhost-reviews-body{
  flex:1 1 auto;
  min-height:0;                      /* important for flex layouts */
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Stars */
.mdmhost-reviews-stars{ display:flex; gap:4px; margin-bottom:2px; }
.mdmhost-reviews-stars svg{ width:20px; height:20px; }

/* Star colors by source */
.mdmhost-reviews-card.source-trustpilot .mdmhost-reviews-stars svg{ fill:#00b67a; }
.mdmhost-reviews-card.source-hostadvice .mdmhost-reviews-stars svg{ fill:#FFB800; }

/* Title + excerpt colors (override any theme link color) */
.mdmhost-reviews .mdmhost-reviews-card h3{
  font-size:18px; line-height:1.25; margin:0;
  color:#111827 !important;          /* near-black title */
  font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.mdmhost-reviews .mdmhost-reviews-card p{
  font-size:15px; line-height:1.6; margin:0 0 10px;
  color:#374151 !important;          /* neutral body */
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  flex:0 0 auto;
}

/* Author row (bottom) */
.mdmhost-reviews-author{
  margin-top:0;
  padding-top:10px;
  display:flex; align-items:center; gap:8px;
  font-size:14px; color:#6b7280 !important;
}
.mdmhost-reviews-author-name{ font-weight:700; color:#111827 !important; }
.mdmhost-reviews-platform-logo{ height:18px; max-height:18px; width:auto; object-fit:contain; }

/* Make sure nothing up the chain clips vertically */
.mdmhost-reviews-slider-container,
.mdmhost-reviews-slider,
.mdmhost-reviews-wrapper{ overflow:visible !important; }

/* ===== Arrows (neutral across states) ===== */
.mdmhost-reviews-nav button{
  position:absolute; top:50%; transform:translateY(-50%);
  background:#fff; border:1px solid #e5e7eb; color:#4b5563;
  border-radius:50%; width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow:0 6px 16px rgba(0,0,0,.10);
  transition:background .2s ease, border-color .2s ease, transform .18s ease, box-shadow .2s ease;
  z-index:10;
  -webkit-tap-highlight-color:transparent;
}
.mdmhost-reviews-nav button:hover{ background:#f9fafb; border-color:#d1d5db; transform:translateY(-50%) scale(1.06); }
.mdmhost-reviews-nav button:active{ transform:translateY(-50%) scale(0.97); }
.mdmhost-reviews-nav button:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(59,130,246,.35), 0 6px 16px rgba(0,0,0,.10) !important;
}
.mdmhost-reviews .mdmhost-reviews-nav button,
.mdmhost-reviews .mdmhost-reviews-nav button:visited,
.mdmhost-reviews .mdmhost-reviews-nav button:focus,
.mdmhost-reviews .mdmhost-reviews-nav button:active,
.mdmhost-reviews .mdmhost-reviews-nav button:focus-visible{
  background:#fff !important;
  color:#4b5563 !important;
  border-color:#e5e7eb !important;
}
.mdmhost-reviews-prev-btn{ left:-18px; }
.mdmhost-reviews-next-btn{ right:-18px; }

/* ===== Responsive widths ===== */
@media (min-width:640px){ .mdmhost-reviews-card-link{ width:50%; } }
@media (min-width:992px){ .mdmhost-reviews-card-link{ width:33.333%; } }
@media (min-width:1200px){ .mdmhost-reviews-card-link{ width:25%; } }

/* Empty state */
.mdmhost-reviews-empty{ text-align:center; font-size:14px; color:#6b7280; }

/* =========================
   Interaction pack
   ========================= */

/* Brand color per source (used for hover/focus ring) */
.mdmhost-reviews-card{ --brand:#e5e7eb; }                    /* fallback */
.mdmhost-reviews-card.source-trustpilot{ --brand:#00b67a; }
.mdmhost-reviews-card.source-hostadvice{ --brand:#FFB800; }

/* Smooth transitions for key pieces */
.mdmhost-reviews-card,
.mdmhost-reviews-card h3,
.mdmhost-reviews-stars svg{
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease,
              color .2s ease, fill .2s ease, filter .2s ease;
}

/* Hover: lift + colored inner ring + richer shadow */
.mdmhost-reviews-card-link:hover .mdmhost-reviews-card{
  transform: translateY(-10px);
  border-color: var(--brand, #d1d5db);
  box-shadow:
    0 18px 44px rgba(16,24,40,.16),
    inset 0 0 0 2px var(--brand, #e5e7eb);
}

/* Active (pressed) */
.mdmhost-reviews-card-link:active .mdmhost-reviews-card{ transform: translateY(-4px); }

/* Keyboard focus */
.mdmhost-reviews-card-link:focus-visible{ outline:none; }
.mdmhost-reviews-card-link:focus-visible .mdmhost-reviews-card{
  border-color: var(--brand, #93c5fd);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand, #3b82f6) 35%, transparent),
    0 14px 34px rgba(16,24,40,.14);
  transform: translateY(-8px);
}

/* Title + stars react a bit on hover */
.mdmhost-reviews-card-link:hover .mdmhost-reviews-card h3{ color:#0b1220 !important; }
.mdmhost-reviews-card-link:hover .mdmhost-reviews-stars svg{
  transform: scale(1.08);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.08));
}
/* tiny stagger for the stars */
.mdmhost-reviews-card-link:hover .mdmhost-reviews-stars svg:nth-child(2){ transition-delay:.02s; }
.mdmhost-reviews-card-link:hover .mdmhost-reviews-stars svg:nth-child(3){ transition-delay:.04s; }
.mdmhost-reviews-card-link:hover .mdmhost-reviews-stars svg:nth-child(4){ transition-delay:.06s; }
.mdmhost-reviews-card-link:hover .mdmhost-reviews-stars svg:nth-child(5){ transition-delay:.08s; }
