/* =========================================
   Webarting Slider – Frontend (theme-agnostic)
   ========================================= */

/* ========== ΒΑΣΗ ========== */
.wa-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-backface-visibility: hidden; /* mobile shimmer fix */
  backface-visibility: hidden;
}

.wa-slider__track {
  display: flex;
  transition: transform 300ms ease;
  will-change: transform;
}

.wa-slide {
  position: relative;
  flex: 0 0 100%;
}

/* Εικόνα & σύνδεσμος (δεν αγγίζουμε κλάσεις theme) */
.wa-slide__link { display: block; }
.wa-slide__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none; /* αφήνει τα clicks στο link wrapper */
}

/* ========== BADGE (κάτω δεξιά) ========== */
.wa-slide__badge {
  position: absolute;
  right: 75px;
  bottom: 95px;
  padding: 10px 18px;
  border-radius: 999px;        /* pill */
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
  max-width: 75%;
  word-wrap: break-word;
  white-space: normal;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

@media (min-width: 992px) {
  .wa-slide__badge {
    font-size: 40px;
    padding: 12px 22px;
  }
}

/* Προαιρετικό «μαξιλάρι» */
.wa-slide--pad .wa-slide__badge { bottom: 24px; right: 24px; }

/* ========== ΠΛΟΗΓΗΣΗ ========== */
.wa-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,.42);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 40px;
  text-align: center;
  user-select: none;
  transition: background 160ms ease, transform 160ms ease;
}
.wa-prev { left: 10px; }
.wa-next { right: 10px; }

.wa-nav:hover { background: rgba(0,0,0,.6); }
.wa-nav:active { transform: translateY(-50%) scale(0.96); }

/* Προσβασιμότητα */
.wa-nav:focus,
.wa-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wa-nav[disabled] { opacity: .4; cursor: default; pointer-events: none; }

/* ========== RTL ========== */
body.rtl .wa-prev { right: 10px; left: auto; }
body.rtl .wa-next { left: 10px; right: auto; }
body.rtl .wa-slide__badge { right: auto; left: 18px; }

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  .wa-slider__track { transition: none; }
  .wa-nav { transition: none; }
}

/* ========== Μικρά helpers (μόνο wa-*) ========== */
.wa-slider img { max-width: 100%; } /* προστασία από “σπασίματα” */

.wa-slider,
.wa-slider__track,
.wa-slide,
.wa-slide__link,
.wa-slide__img {
  padding: 0 !important;
  margin: 0 !important;
}

/* Προαιρετικό: σκιά γύρω από τον slider */
.wa-slider--shadow {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
}

/* ---------------------------------
   Πλοήγηση (βελάκια slider)
   --------------------------------- */
.wa-nav {
  all: unset; /* Αφαιρεί ΟΛΑ τα styles του theme */
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 36px !important;
  background: rgba(0,0,0,.45) !important;
  color: #fff !important;
  border-radius: 10px !important; /* μικρή καμπυλότητα */
  cursor: pointer !important;
  font-size: 18px !important;
  line-height: 1 !important;
  text-align: center !important;
  user-select: none !important;
  transition: background 160ms ease, transform 160ms ease !important;
  z-index: 20 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.18) !important;
}

.wa-prev { left: 10px !important; }
.wa-next { right: 10px !important; }

.wa-nav:hover {
  background: rgba(0,0,0,.65) !important;
}
.wa-nav:active {
  transform: translateY(-50%) scale(0.96) !important;
}

.wa-nav:focus,
.wa-nav:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 2px !important;
}

.wa-nav[disabled] {
  opacity: .4 !important;
  cursor: default !important;
  pointer-events: none !important;
}