@use '../variables' as *;

.references-section {
  padding-block: var(--space-20);
  padding-inline: var(--space-4);
  background: var(--bg-references);
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      var(--color-primary) 30%,
      var(--color-secondary) 70%,
      transparent 100%
    );
  }

  @media (max-width: 768px) {
    padding-block: var(--space-12);
  }

  &__container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  // ── Title ─────────────────────────────────────────────────────
  &__title {
    font-size: clamp(2rem, 5vw, var(--font-size-4xl));
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    color: $color-heading;
  }

  // ── List ──────────────────────────────────────────────────────
  &__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
  }

  &__item {
    background: var(--card-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-glass-border);
    border-left: 3px solid var(--color-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    transition:
      box-shadow var(--transition-slow),
      transform var(--transition-slow);

    &:hover {
      box-shadow: var(--shadow-glow-hover);
      transform: translateY(-3px) scale(1.01);
    }
  }

  // ── Quote text ────────────────────────────────────────────────
  &__quote {
    font-size: var(--font-size-base);
    line-height: var(--leading-loose);
    color: var(--color-text);
    margin: 0;
    font-style: italic;

    &::before {
      content: '\201C';
      font-size: 2.2em;
      line-height: 0;
      vertical-align: -0.45em;
      margin-right: 0.15em;
      color: var(--color-primary);
      font-style: normal;
      opacity: 0.75;
    }

    &::after {
      content: '\201D';
      font-size: 2.2em;
      line-height: 0;
      vertical-align: -0.45em;
      margin-left: 0.15em;
      color: var(--color-primary);
      font-style: normal;
      opacity: 0.75;
    }
  }

  // ── Author attribution ────────────────────────────────────────
  &__author {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
  }

  &__name {
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    color: var(--color-text);
    margin: 0;
  }

  &__position {
    font-size: var(--font-size-xs);
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-muted);
    margin: 0;
  }
}
