/* desktop-ui.css - softer shapes, hover motion and the permanent Discover filter panel (screens >= 900 px).
   Phones and tablets are NOT affected. Rollback: remove the <link> to this file from index.html. */
@media (min-width: 900px) {
  /* 1. Softer shapes: rounded corners with a small tail (same family as chips and message bubbles) */
  :root {
    --cut: inset(0 round 16px);
  }

  /* 2. Hover and press motion (hover-driven only, so screens that refresh themselves never flicker) */
  @keyframes dk-beat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.18); }
  }
  nav#nav button {
    transition: background .2s, color .2s, transform .2s;
  }
  nav#nav button:hover:not(.on) {
    transform: translateX(4px);
  }
  .btn {
    transition: background .2s, color .2s, transform .18s !important;
  }
  .btn:not(:disabled):hover {
    transform: translateY(-2px);
  }
  .btn:not(:disabled):active {
    transform: scale(.97);
  }
  .chip {
    cursor: pointer;
    transition: transform .18s, background .2s, color .2s;
  }
  .chip:hover {
    transform: translateY(-2px);
  }
  .btn svg {
    transition: transform .25s;
  }
  .acts .btn:not(.ghost):hover svg {
    animation: dk-beat .9s ease-in-out infinite;
  }
  .acts .btn.ghost:hover svg {
    transform: rotate(90deg);
  }
  .li {
    transition: transform .2s, background .2s;
  }
  .li:hover {
    transform: translateX(4px);
  }
  .pm-card {
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  }
  .pm-card:hover {
    transform: translateY(-6px);
  }

  /* 3. Like / Pass stamp on the card while the mouse is over the Like or Pass button */
  #card::after {
    content: "";
    position: absolute;
    top: 24px;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    padding: 6px 14px;
    border: 3px solid;
    border-radius: 8px;
    font: 800 28px/1 "Bricolage Grotesque", sans-serif;
    transition: opacity .25s, transform .25s;
  }
  #view:has(.acts .btn:not(.ghost):hover) #card::after {
    content: "Like";
    right: 24px;
    color: #2A8C82;
    opacity: 1;
    transform: rotate(12deg);
  }
  #view:has(.acts .btn.ghost:hover) #card::after {
    content: "Pass";
    left: 24px;
    color: var(--t2);
    opacity: 1;
    transform: rotate(-12deg);
  }

  /* 4. Discover: permanent filter panel on the left, card on the right */
  .wrap:has(#nav) #view:has(.stage) {
    max-width: 980px;
    display: grid;
    grid-template-columns: 300px minmax(0, 560px);
    column-gap: 32px;
    justify-content: center;
    align-items: start;
  }
  .wrap:has(#nav) #view:has(.stage) > * {
    grid-column: 2;
  }
  .wrap:has(#nav) #view:has(.stage) > .fbar {
    display: none;
  }
  .wrap:has(#nav) #view:has(.stage) > .fp {
    grid-column: 1;
    grid-row: 1 / span 8;
    position: sticky;
    top: 24px;
    display: block !important;
    grid-template-rows: 1fr !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin: 0;
    padding: 22px;
    box-sizing: border-box;
    background: var(--s1);
    border-radius: 22px;
  }
  .wrap:has(#nav) #view:has(.stage) > .fp .fi {
    min-height: auto !important;
    overflow: visible !important;
  }
  .wrap:has(#nav) #view:has(.stage) > .fp .fl {
    margin: 16px 0 8px;
  }
  .wrap:has(#nav) #view:has(.stage) > .fp .fl:first-child {
    margin-top: 0;
  }
}
/* end of desktop-ui.css */