html, body {
  scroll-behavior: smooth;
}

 /* body {
  &.drawer-open {
   overflow: visible
  }
 } */

pds-drawer {
  video, img {
    display: block;
    margin: auto;
  }
}

qg-timeline {
  height: calc(100vh - 200px)
}

.ac-suggestion.ac-active {
  z-index: var(--z-dropdown);
  backdrop-filter: blur(10px) saturate(180%) contrast(85%);
  background: color-mix(
    in srgb,
    var(--color-surface-elevated) 90%,
    transparent
  );
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-2);
  border-radius: var(--radius-md);
  z-index: 1;

  .ac-itm {
    min-width: 300px;
    cursor: pointer;
    padding: var(--spacing-2) 0;
    display: grid;
    grid-template-columns: 45px 1fr 80px;

    .text {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    pds-icon {
      position: relative;
      left: unset;
    }

    .category {
      float: right;
      opacity: 0.6;
      font-size: small;
    }

    &.selected,
    &:hover {
      background-color: var(--color-surface-overlay);
    }
  }
}

:root {
  /* Tweak these to taste */
  --gold-1: #7a5c29; /* dark */
  --gold-2: #c8a24a; /* mid */
  --gold-3: #ffe8a3; /* light */
  --gold-4: #e0b954; /* mid2 */
}

app-ui {
  > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-2);
    z-index: var(--z-dropdown);
  }

  main {
    padding-top: 40px;
  }
}

.gold {
  position: relative;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--color-surface-elevated);
  color: #f6f3ea;
  overflow: hidden; /* keeps glare inside rounded corners */
}

/* base gold border */
.gold::before {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 5px;
  background: conic-gradient(
    from 30deg,
    #7a5c29,
    #c8a24a,
    #ffe8a3,
    #c8a24a,
    #7a5c29
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* moving shine layer */
.highlight::after {
  content: "";
  position: absolute;
  inset: 140%; /* make it big enough to cross diagonally */
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 20%,
    rgba(255, 255, 255, 0.4) 50%
  );
  transform: rotate(0deg) translate(-100%, -100%);
  animation: shine 2s cubic-bezier(1, 0.185, 0.32, 1.675);
}

/* animation: sweep from top-left to bottom-right */
@keyframes shine {
  0% {
    transform: translate(-100%, -100%) rotate(0deg);
  }
  100% {
    transform: translate(100%, 100%) rotate(0deg);
  }
}

article {
  background-color: var(--color-surface-subtle);
}

/* moving glare */
.highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );

  pointer-events: none;
}

h2 {
  width: 100%;
  text-transform: uppercase;
  font: 600 1.3rem/1.4 system-ui, sans-serif;
  background: linear-gradient(-10deg, var(--color-primary-800), var(--color-accent-800), var(--color-accent-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

pds-scrollrow {
  article{
    cursor: pointer;
  }
  h3 {
    font-size: medium;
  }

  img,
  video {
    pointer-events: none;
    width: 100%;
    height: 120px;
    object-fit: cover;
  }
  h3 {
    padding: 10px 10px;
    font-size: 0.8rem;
    font-weight: 400;
  }

  ul {
    padding-top: 10px;
  }
}

video[controls] {
  opacity: 0;
  transition: opacity 0.5s ease;
  transition-delay: 0.2s;
}


video[controls].ready {
  opacity: 1;
}

omni-box {
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--layout-max-width);
  margin: auto;
  margin-bottom: 1rem;
}

.clamp-2__ {
  /* works in Chromium/Safari and modern Firefox */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  /* emerging standard; harmless fallback elsewhere */
  line-clamp: 2;

  overflow: hidden;
  text-overflow: ellipsis; /* optional but fine */
  line-height: 1.5; /* ensures clean line boundaries */
  max-height: 3em; /* 1.5 line-height × 2 lines = 3em */
}

#categories {
  a[data-category] {
    color: var(--collor-text-primary);
    text-decoration: none;

    &:nth-child(1) {
      background-color: rgba(255, 0, 0, 0.1);
    }
    &:nth-child(2) {
      background-color: rgba(0, 255, 0, 0.1);
    }
    &:nth-child(3) {
      background-color: rgba(0, 0, 255, 0.1);
    }
    &:nth-child(4) {
      background-color: rgba(255, 255, 0, 0.1);
    }
    &:nth-child(5) {
      background-color: rgba(0, 255, 255, 0.1);
    }
    &:nth-child(6) {
      background-color: rgba(255, 0, 255, 0.1);
    }
  }
}

pwa-boost {
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.53, -0.18, 0.44, 1.35);
  transition-delay: 0.1s;
}

[data-scroll="down"] {
  pwa-boost {
    transform: translateY(400px);
    transition: transform 0.5s cubic-bezier(0.33, -0.26, 0.46, 1.11);
  }
}

pds-drawer {

  &[position="left"] {
    --drawer-width: 500px;

    @media (max-width: 639px) {
      --drawer-width: 100vw;
    } 
  } 
  
  &:has(.anneke){
    &::part(panel) {
        background-color: transparent;
        padding-top: 140px;
        overflow: visible !important;
      }

  }
  
  .drawer-header:has(.anneke) {
    background-color: transparent;
    position: relative;
    overflow: visible;
    border-radius: none;

    .anneke {
      position: absolute;
      top: -140px;
      width: 140px;
      height: 140px;
      object-fit: cover;
      border-radius: 50%;
      z-index: 10;
    }
  }
}

section {

  h2 {
    margin: 0
  }
}

[slot="drawer-header"]{
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: -12px
}

.drawer-header { 
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-2);

  .drawer-disclaimer {
    font-size: small;
    opacity: 0.7;
  }
}

.center-text {
  flex: 1;
  text-align: center;
}

[role="radiogroup"]{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--spacing-3);
}

.clamp-2{
  /* works in Chromium/Safari and modern Firefox */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  /* emerging standard; harmless fallback elsewhere */
  line-clamp: 2;

  overflow: hidden;
  text-overflow: ellipsis; /* optional but fine */
  line-height: 1.2; /* ensures clean line boundaries */
  max-height: 3.4em; /* 1.7 line-height × 2 lines = 3.4em */
}


