/* Modern Hero Slider - Ultra Fast & Clean */
.hero-slider {
  position: relative;
  margin: 0 0 2rem;
  width: 100%;
  overflow: hidden;
  --accent: #e11d48;        /* roșu subtil pentru accente */
  --accent-ghost: rgba(225, 29, 72, 0.18);
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  aspect-ratio: 16/6;
  background: #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: block;
}

.slide {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1) rotate(2deg);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  position: relative;
}

.slide.prev {
  transform: scale(0.9) rotate(-2deg);
  opacity: 0;
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease-out;
  filter: brightness(0.95);
  border-radius: 0;
  display: block;
}

.slide.active img {
  transform: scale(1.02);
}

.slide:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

/* ===== Caption: text alb, accent roșu foarte discret ===== */
.caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;                        /* text alb pentru eleganță/contrast */
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s ease 0.2s;
  max-width: 600px;
}

/* mic accent roșu, sub formă de “bară” fină sus-stânga */
.caption::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 48px;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

.slide.active .caption {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ===== Controale cu chevron alb, perfect centrat ===== */
.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  padding: 0 1rem;
}

.slider-controls button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;                        /* icon alb implicit */
  width: 50px;
  height: 50px;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  display: flex;                      /* centru real pentru pseudo-element */
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0;                       /* ascunde caracterele HTML ‹ › */
  line-height: 0;
}

/* desenăm iconița prin ::before + mask SVG; flex o centrează perfect */
.slider-controls .prev::before,
.slider-controls .next::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;           /* urmează “color” => alb */
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* chevron stânga/dreapta */
.slider-controls .prev::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'><path d='M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'><path d='M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z'/></svg>");
}
.slider-controls .next::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'><path d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 24 24'><path d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/></svg>");
}

.slider-controls button:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.06);
  /* fără roșu pe hover – elegant, neutru */
}

.slider-controls button:active { transform: scale(0.95); }

/* ===== Buline rotunde, roșu DOAR pe activ; peste slider ===== */
.dots {
  position: absolute;          /* peste slider */
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin: 0;
  z-index: 12;
  pointer-events: auto;
}

.dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);              /* discret */
  border: 1px solid rgba(255,255,255,0.55);        /* inel alb subtil */
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25);          /* vizibilitate pe imagini */
}

.dots button:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-1px) scale(1.1);
}

.dots button.active {
  background: var(--accent);                        /* roșu doar aici */
  border-color: var(--accent);
  transform: translateY(-1px) scale(1.18);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.28), 0 0 0 4px var(--accent-ghost);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .slides { aspect-ratio: 4/3; }
  .caption {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  .caption::before { width: 40px; }

  .slider-controls { padding: 0 0.5rem; }
  .slider-controls button { width: 44px; height: 44px; }
  .slider-controls .prev::before,
  .slider-controls .next::before { width: 16px; height: 16px; }

  .dots { gap: 9px; bottom: 12px; }
  .dots button { width: 9px; height: 9px; }
}

@media (max-width: 480px) {
  .slides { aspect-ratio: 1/1; }
  .caption { font-size: 0.9rem; padding: 0.8rem 1rem; }
  .caption::before { width: 36px; }

  .slider-controls button { width: 38px; height: 38px; }
  .slider-controls .prev::before,
  .slider-controls .next::before { width: 14px; height: 14px; }

  .dots { gap: 8px; bottom: 10px; }
  .dots button { width: 8px; height: 8px; }
}

/* Smooth Performance */
.slide { will-change: transform, opacity; }
.slide img { will-change: transform; }

/* Focus States */
.slider-controls button:focus-visible,
.dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.slide:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Loading State */
.hero-slider[data-loading] .slide {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

/* Ultra Modern Minimalist Variant */
.hero-slider.minimal .slides {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.hero-slider.minimal .caption {
  background: rgba(255, 255, 255, 0.94);
  color: #111;                           /* rămâne elegant */
  border-color: rgba(0, 0, 0, 0.08);
}
.hero-slider.minimal .caption::before {
  background: var(--accent);
}
.hero-slider.minimal .slider-controls button {
  background: rgba(255, 255, 255, 0.9);
  color: #111;                            /* săgeți albe/neutre */
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Fără colțuri rotunjite pe slider și imagini (bulinele rămân rotunde) */
.hero-slider .slides,
.hero-slider .slide,
.hero-slider .slide img {
  border-radius: 0 !important;
}
