@use "../../../../styles/abstracts/variables" as *;

/* ================= SECTION ================= */
.testimonials {
  padding: 6rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(247,147,26,0.08), transparent 60%),
    linear-gradient(180deg, #0a0a0a, #121212);
  color: #fff;
  overflow: hidden;
}

/* ================= TOP ROW ================= */
.topRow {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;

  @media (max-width: 768px) {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= HEADER ================= */
.header {
  max-width: 560px;

  span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: #fbbf24;
  }

  h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.6rem 0;
    letter-spacing: -0.03em;

    @media (max-width: 768px) {
      font-size: 1.7rem;
    }
  }

  p {
    color: #cbd5e1;
    font-size: 0.95rem;
  }
}

/* ================= CONTROLS ================= */
.controls {
  display: flex;
  gap: 0.75rem;

  button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(15,15,15,0.9);
    backdrop-filter: blur(14px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    box-shadow:
      0 10px 30px rgba(0,0,0,0.4),
      inset 0 1px 0 rgba(255,255,255,0.08);

    transition: all 0.25s ease;

    &:hover {
      background: rgba(247,147,26,0.14);
      border-color: rgba(247,147,26,0.35);
      transform: translateY(-2px);
    }
  }

  @media (max-width: 768px) {
    display: none;
  }
}

/* ================= SLIDER ================= */
.slider {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 0.5rem 2rem;
  scroll-snap-type: x mandatory;

  &::-webkit-scrollbar {
    display: none;
  }
}

/* ================= CARD ================= */
.card {
  min-width: 340px;
  max-width: 340px;
  padding: 2rem;
  border-radius: 22px;
  scroll-snap-align: start;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.055),
      rgba(255,255,255,0.015)
    );

  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);

  transition: transform 0.25s ease;

  &:hover {
    transform: translateY(-4px);
  }

  @media (max-width: 640px) {
    min-width: 85%;
  }
}

/* ================= TEXT ================= */
.card blockquote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e5e7eb;
  margin-bottom: 2rem;
}

/* ================= FOOTER ================= */
.card footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7931a, #ffd86f);
  box-shadow: 0 6px 18px rgba(247,147,26,0.35);
}

.meta {
  display: flex;
  flex-direction: column;

  strong {
    font-size: 0.9rem;
    color: #fff;
  }

  span {
    font-size: 0.8rem;
    color: #94a3b8;
  }
}
