/*
 * This file is part of the UX SDC Bundle
 *
 * (c) Jozef Môstka <https://github.com/tito10047/ux-sdc>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

@layer components {
  .emotion {
    position: relative;
    padding-block: var(--space-2xl);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;

    & .emotion__bg {
      position: absolute;
      inset: 0;
      z-index: 0;

      &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle, rgba(11, 13, 23, 0.4) 0%, rgba(11, 13, 23, 0.8) 100%);
      }
    }

    & .emotion__bg-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: blur(8px) brightness(0.6);
      transform: scale(1.1);
    }

    & .emotion__content {
      position: relative;
      z-index: 1;
      max-width: 900px;
      margin-inline: auto;
      text-align: center;
      padding-inline: var(--space-m);
    }

    & .emotion__quote {
      font-family: var(--font-serif);
      font-size: var(--size-step-2);
      font-style: italic;
      line-height: 1.4;
      margin-bottom: var(--space-l);

      & p {
        margin-bottom: var(--space-m);
      }
    }

    & .emotion__author {
      font-style: normal;
      font-size: var(--size-step-0);
      opacity: 0.9;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    & .emotion__actions {
      margin-top: var(--space-xl);
    }

    & .emotion__link {
      color: var(--color-primary);
      text-decoration: underline;
      text-underline-offset: 4px;
      font-weight: 600;
      transition: all 0.3s ease;

      &:hover {
        color: var(--color-accent);
        text-decoration-color: var(--color-accent);
      }
    }
  }
}
