/*
 * 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.
 */

/* Styles for Paper component */
@layer components {
  .paper-content {
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: var(--space-m);

    & .paper-content__inner {
      display: flex;
      flex-direction: column;
      gap: var(--space-m);
    }

    & .paper-content__subtitle {
      font-size: var(--size-step-0);
      font-weight: bold;
      margin-bottom: var(--space-xs);
      border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    & .paper-content__body {
      font-size: var(--size-step-0);
      text-indent: var(--space-m);
      display: block;
    }

    & .paper-content__body--carbon {
      color: #00008b; /* Dark blue carbon color */
      text-shadow: 1px 1px 0px rgba(0, 0, 255, 0.2);
    }

    & .paper-content__memo {
      background: #ffff88; /* Sticky note yellow */
      padding: var(--space-s);
      width: fit-content;
      max-width: 300px;
      position: relative;
      margin-left: auto;
      margin-right: var(--space-m);
      transform: rotate(2deg);
      box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
      border-left: 2px solid rgba(0,0,0,0.05);
      color: #333;
      z-index: 10;
    }

    & .paper-content__memo-clip {
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 2px;
      height: 25px;
      background: #000;
      opacity: 0.8;
      box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

    & .paper-content__memo-text {
      font-family: var(--font-handwritten);
      font-size: var(--size-step-1);
      margin: 0;
    }
  }

  [data-theme="dark"] .paper-content {
    & .paper-content__subtitle {
        border-bottom: 1px solid rgba(0,0,0,0.2);
    }

    & .paper-content__memo {
        background: #e6e600;
        color: #000;
    }

    & .paper-content__body--carbon {
        text-shadow: 1px 1px 0px rgba(173, 216, 230, 0.4);
    }
  }
}
