/* ============================================================
   Reviews 3D — carusel coverflow cu parallax continuu
   Folosit pe recrutare.html + consultanta.html
   ============================================================ */

.reviews3d {
  position: relative;
  overflow: hidden;
}

/* Aură de fundal animată */
.reviews3d::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 0%, var(--color-primary-500, #0B3D5C) 0%, transparent 70%);
  opacity: .10;
  filter: blur(40px);
  pointer-events: none;
  animation: rev-aura 14s ease-in-out infinite alternate;
}
@keyframes rev-aura {
  0%   { transform: translateX(-6%) scale(1); opacity: .07; }
  100% { transform: translateX(6%)  scale(1.1); opacity: .14; }
}

/* Scena 3D */
.reviews3d-stage {
  position: relative;
  height: 540px;
  margin: var(--space-10, 40px) auto 0;
  max-width: 1100px;
  perspective: 1800px;
  perspective-origin: 50% 45%;
  touch-action: pan-y;
}

.reviews3d-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s ease-out;
}

/* Card individual */
.rev3d-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  max-width: 86vw;
  margin-left: -220px;
  margin-top: -230px;
  min-height: 420px;
  max-height: 460px;
  box-sizing: border-box;
  padding: 38px 38px 30px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 30px 70px -25px rgba(15,23,42,.45), 0 8px 22px -12px rgba(15,23,42,.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .7s ease, filter .7s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dark theme cards */
[data-theme="dark"] .rev3d-card,
.reviews3d[data-theme-card="dark"] .rev3d-card {
  background: linear-gradient(160deg, rgba(30,33,46,.92), rgba(20,22,32,.82));
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 30px 80px -25px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}

/* Glare ce se mișcă (efect de „carte") */
.rev3d-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
.rev3d-card.is-active::after {
  opacity: 1;
  animation: rev-glare 4.5s ease-in-out infinite;
}
@keyframes rev-glare {
  0%, 70% { transform: translateX(-120%); }
  100%    { transform: translateX(120%); }
}

/* Ghilimele decorative */
.rev3d-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 84px;
  line-height: .6;
  color: var(--color-primary-500, #0B3D5C);
  opacity: .22;
  height: 34px;
  user-select: none;
}

.rev3d-stars {
  display: flex;
  gap: 3px;
  color: #f5a623;
  margin: 6px 0 14px;
}
.rev3d-stars svg { width: 18px; height: 18px; }

.rev3d-text {
  font-size: 15px;
  line-height: 1.62;
  color: var(--color-gray-700, #374151);
  margin: 0 0 18px;
  overflow-y: auto;
  flex: 1;
  padding-right: 6px;
  scrollbar-width: thin;
}
[data-theme="dark"] .rev3d-text { color: rgba(226,232,240,.86); }
.rev3d-text p { margin: 0 0 10px; }
.rev3d-text::-webkit-scrollbar { width: 5px; }
.rev3d-text::-webkit-scrollbar-thumb { background: rgba(120,120,140,.35); border-radius: 4px; }

.rev3d-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(120,120,140,.16);
  flex-shrink: 0;
}
.rev3d-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-500, #0B3D5C), var(--color-accent-500, #FFB627));
  box-shadow: 0 6px 16px -6px var(--color-primary-500, #0B3D5C);
  flex-shrink: 0;
}
.rev3d-name { font-weight: 700; font-size: 15px; color: var(--color-gray-900, #111827); }
[data-theme="dark"] .rev3d-name { color: #f8fafc; }
.rev3d-city { font-size: 13px; color: var(--color-gray-500, #6b7280); }

/* Dots + săgeți */
.reviews3d-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  position: relative;
  z-index: 5;
}
.rev3d-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(120,120,140,.25);
  background: rgba(255,255,255,.7);
  color: var(--color-gray-700, #374151);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(8px);
}
.rev3d-arrow:hover {
  transform: scale(1.08);
  background: var(--color-primary-500, #0B3D5C);
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--color-primary-500, #0B3D5C);
}
[data-theme="dark"] .rev3d-arrow { background: rgba(40,42,54,.7); color: #e2e8f0; border-color: rgba(255,255,255,.12); }

.reviews3d-dots { display: flex; gap: 9px; align-items: center; }
.rev3d-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(120,120,140,.32);
  cursor: pointer;
  padding: 0;
  transition: width .3s ease, background .3s ease;
}
.rev3d-dot.is-active {
  width: 26px;
  border-radius: 5px;
  background: var(--color-primary-500, #0B3D5C);
}

@media (max-width: 600px) {
  .reviews3d-stage { height: 560px; perspective: 1200px; }
  .rev3d-card { padding: 28px 24px 22px; min-height: 440px; max-height: 480px; }
  .rev3d-text { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .rev3d-card, .reviews3d-track { transition: none; }
  .rev3d-card.is-active::after { animation: none; }
  .reviews3d::before { animation: none; }
}
