/* Design tokens */
:root {
  --bg: transparent;
  --surface: transparent;
  --overlay: rgba(255, 255, 255, 0.04); /* fundal subtil */
  --text: #fa0505;
  --muted: #a3adc2;
  --border: rgba(255, 255, 255, 0.06);

  --primary: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;

  --radius: 12px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* variantă discretă */
}

/* Container */
.pve-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.1rem;
  text-align: center;
  width: 100%;                 /* Lățime completă */
  height: auto;                /* Înălțime automată */
  max-height: 400px;           /* Limită maximă */
  margin: 0.1rem 0;
  padding: clamp(1rem, 2vw + 1rem, 2rem);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: max-height 0.3s ease-in-out; /* Efect fluid */
}
/* Responsive pentru ecrane mici */
@media (max-width: 480px) {
  .pve-wrapper {
    max-height: 390px;         /* Mai mic pe mobil */
    padding: 1rem;
  }
}

/* Translucent inner surface */
.pve-overlay {
  width: 100%;
  max-width: 46rem;
  padding: clamp(1rem, 1.5vw + 1rem, 1.5rem);
  border-radius: calc(var(--radius) - 2px);
  background: var(--overlay);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid var(--border);
}

/* Spacing between children */
.pve-overlay > * + * {
  margin-top: 0.5rem;
}

/* Icon + text */
.pve-lock-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.pve-message {
  font-size: clamp(1rem, 0.5vw + 1rem, 1.125rem);
  color:#18abf2;
  font-weight: 600;
  margin: 0;
}

.pve-subtext {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Button */
.playButton {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  color: #fa0505;
  border: 0;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 10px;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2); /* umbră mai discretă */
  transition: transform 160ms ease, box-shadow 200ms ease, filter 200ms ease, background-color 200ms ease;
}

.playButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.25);
}

.playButton:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.playButton:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.3),
    0 4px 12px rgba(14, 165, 233, 0.2);
}

.playButton:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Loader */
.pve-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #f53636;
  margin-top: 1rem;
  opacity: 0.9;
}

.pve-loader::before {
  content: "";
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: pve-spin 0.8s linear infinite;
}

@keyframes pve-spin {
  to { transform: rotate(360deg); }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
