/* =========================================================
   Vélemények Plugin – Frontend CSS
   DesArt.hu | v2.0.1 – átlátszó háttér, semleges navigáció
   ========================================================= */

/* ── CSS változók ──────────────────────────────────────── */
:root {
  --vel-card:         #1a2840;
  --vel-card-border:  rgba(255, 255, 255, 0.07);
  --vel-card-shadow:  0 4px 24px rgba(0, 0, 0, 0.25);
  --vel-star:         #f59e0b;
  --vel-accent:       #6366f1;
  --vel-accent-2:     #38bdf8;
  --vel-text-card:    #f1f5f9;
  --vel-muted-card:   #94a3b8;
  --vel-muted-2:      #64748b;
  --vel-label-color:  #818cf8;
  --vel-radius:       16px;
  --vel-radius-sm:    10px;
  --vel-transition:   0.25s ease;
}

/* ── Slider szekció – ÁTLÁTSZÓ háttér ─────────────────── */
.vel-section {
  background: transparent;
  padding: 60px 40px 50px;
  box-sizing: border-box;
}

.vel-slider {
  padding: 10px 0 40px 0;
}

.vel-section__header {
  margin-bottom: 40px;
}

.vel-section__label {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--vel-label-color);
  font-weight: 600;
  margin: 0 0 10px;
}

.vel-section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

/* Fehér/sötét oldalon egyaránt: az oldal alapszínét örökli */
.vel-section__title-white {
  color: inherit;
  display: block;
}

.vel-section__title-accent {
  display: block;
  background: linear-gradient(90deg, var(--vel-accent), var(--vel-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Slider wrapper ────────────────────────────────────── */
.vel-slider {
  overflow: hidden;
  position: relative;
}

.vel-slider__track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ── Véleménykártya – mindig sötét ─────────────────────── */
.vel-card {
  background: var(--vel-card);
  border: 1px solid var(--vel-card-border);
  border-radius: var(--vel-radius);
  padding: 28px 24px 24px;
  box-shadow: var(--vel-card-shadow);
  flex: 0 0 calc(25% - 15px);
  min-width: calc(25% - 15px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform var(--vel-transition), box-shadow var(--vel-transition);
}

.vel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.vel-card__stars {
  margin-bottom: 14px;
  display: flex;
  gap: 3px;
}

.vel-star {
  font-size: 18px;
  color: rgba(255,255,255,0.2);
}

.vel-star--on {
  color: var(--vel-star);
}

.vel-card__text {
  color: var(--vel-muted-card);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 auto;
  font-style: italic;
  padding-bottom: 20px;
}

.vel-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--vel-card-border);
  padding-top: 18px;
}

.vel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.vel-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vel-card__name {
  color: var(--vel-text-card);
  font-size: 14px;
  font-weight: 600;
}

.vel-card__company {
  color: #64748b;
  font-size: 12px;
}

/* ── Navigáció – semleges, fehér és sötét oldalon is jó ── */
.vel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.vel-nav__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(99, 102, 241, 0.4);
  color: var(--vel-accent);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--vel-transition), border-color var(--vel-transition), transform var(--vel-transition);
  line-height: 1;
}

.vel-nav__btn:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--vel-accent);
  transform: scale(1.08);
}

.vel-nav__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Pontok: semleges szürke → indigo active (mindkét háttéren látható) */
.vel-nav__dot {
  height: 8px;
  border-radius: 4px;
  background: rgba(100, 116, 139, 0.35);
  cursor: pointer;
  transition: all var(--vel-transition);
  width: 8px;
  border: none;
}

.vel-nav__dot--active {
  background: var(--vel-accent);
  width: 28px;
}

/* ── Üres állapot ──────────────────────────────────────── */
.vel-empty {
  color: var(--vel-muted-2);
  text-align: center;
  padding: 40px;
}

/* ========================================================
   VÉLEMÉNYBEKÜLDŐ OLDAL – ÁTLÁTSZÓ háttér
   ======================================================== */

.vel-page-wrap {
  background: transparent;
  font-family: inherit;
}

/* ── Hero – átlátszó, szöveg örökli az oldal színét ────── */
.vel-hero {
  text-align: center;
  padding: 60px 24px 48px;
  background: transparent;
}

.vel-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--vel-label-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.vel-hero__title {
  font-size: clamp(26px, 4.5vw, 48px);
  font-weight: 700;
  color: inherit;
  margin: 0 0 16px;
  line-height: 1.15;
}

.vel-hero__accent {
  background: linear-gradient(90deg, var(--vel-accent), var(--vel-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vel-hero__sub {
  color: var(--vel-muted-2);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 480px;
  margin-inline: auto;
}

/* ── Form wrapper ──────────────────────────────────────── */
.vel-form-wrap {
  padding: 0 24px 60px;
  max-width: 820px;
  margin: 0 auto;
}

/* ── Form kártya – megtartja a sötét dizájnt ───────────── */
.vel-form-card {
  background: #1a2840;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--vel-radius);
  padding: 40px 44px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.vel-form-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.vel-form-card__icon {
  font-size: 22px;
}

.vel-form-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.vel-form-card__notice {
  color: #94a3b8;
  font-size: 13px;
  margin: 0 0 32px;
}

/* ── Success állapot ───────────────────────────────────── */
.vel-success {
  text-align: center;
  padding: 40px 24px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--vel-radius-sm);
}

.vel-success__icon {
  width: 56px;
  height: 56px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin: 0 auto 20px;
}

.vel-success__title {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 10px;
}

.vel-success__text {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ── Form ──────────────────────────────────────────────── */
.vel-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.vel-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vel-form__field--full {
  grid-column: 1 / -1;
}

.vel-form__label {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.2px;
}

.vel-label-note {
  color: #64748b;
  font-weight: 400;
  font-size: 12px;
}

.vel-required {
  color: #ef4444;
}

.vel-form__input,
.vel-form__textarea {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--vel-radius-sm);
  color: #f1f5f9;
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--vel-transition), box-shadow var(--vel-transition);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.vel-form__input::placeholder,
.vel-form__textarea::placeholder {
  color: #4b5563;
}

.vel-form__input:focus,
.vel-form__textarea:focus {
  border-color: var(--vel-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.vel-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.vel-form__counter {
  font-size: 12px;
  color: #64748b;
  text-align: right;
}

.vel-form__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 24px 0;
}

/* ── Csillag értékelő ──────────────────────────────────── */
.vel-stars {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.vel-stars__star {
  font-size: 32px;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: color var(--vel-transition), transform var(--vel-transition);
  user-select: none;
  line-height: 1;
}

.vel-stars__star:hover,
.vel-stars__star.is-active {
  color: var(--vel-star);
  transform: scale(1.1);
}

.vel-stars__label {
  font-size: 13px;
  color: var(--vel-star);
  font-weight: 600;
  height: 20px;
}

/* ── GDPR checkbox ─────────────────────────────────────── */
.vel-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

.vel-form__checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--vel-accent);
  cursor: pointer;
}

.vel-form__checkbox a {
  color: #818cf8;
  text-decoration: underline;
}

/* ── Hibaüzenet ────────────────────────────────────────── */
.vel-form__error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--vel-radius-sm);
  color: #fca5a5;
  font-size: 13px;
  padding: 12px 16px;
  margin-top: 4px;
}

/* ── Beküldő gomb ──────────────────────────────────────── */
.vel-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  margin-top: 28px;
  background: linear-gradient(135deg, var(--vel-accent), #8b5cf6);
  color: #fff;
  border: none;
  border-radius: var(--vel-radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--vel-transition), transform var(--vel-transition);
  letter-spacing: 0.3px;
  font-family: inherit;
}

.vel-form__submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.vel-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vel-form__privacy-note {
  text-align: center;
  color: #64748b;
  font-size: 12px;
  margin: 12px 0 0;
}

/* ── Reszponzív ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .vel-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
  }
}

@media (max-width: 768px) {
  .vel-section {
    padding: 40px 20px 32px;
  }

  .vel-card {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
  }

  .vel-form-card {
    padding: 28px 20px;
  }

  .vel-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vel-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .vel-hero {
    padding: 40px 16px 32px;
  }
}
