/* =====================================================================
   PHONE MOCKUP  (from 21st.dev "Phone Mockups 1")
   Seen in the demo: one phone, centred in a 600px-tall area.
   Reconstructed from the published component: a modern phone with
   rounded corners, a thin dark frame, a pill-shaped camera cut-out at
   the top, side buttons, and a soft shadow, with the screen holding
   app content.
   Socialique version: holds a client's reel (silent preview that plays
   when on screen; tap for the full reel with sound) or a static post /
   feed screenshot that scrolls inside the screen.

   Markup: see SKILL.md → Phone mockup.
   ===================================================================== */

.slq-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }

.slq-phone {
  --w: 270px;
  position: relative; flex: none;
  width: var(--w); aspect-ratio: 9 / 19.5;
  padding: 10px; box-sizing: border-box;
  border-radius: 46px;
  background: linear-gradient(145deg, #1d2533, #070b12);
  box-shadow:
    inset 0 0 0 1.5px #3a4456,          /* metal edge */
    0 2px 4px rgba(1, 23, 51, 0.12),
    0 40px 60px -30px rgba(1, 23, 51, 0.45);
  margin: 0;
}
/* Side buttons */
.slq-phone::before, .slq-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a3242; }
.slq-phone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 calc(var(--w) * 0.22) 0 #2a3242; }
.slq-phone::after { right: -3px; top: 28%; height: 14%; }

.slq-phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 36px; background: var(--slq-linen);
}
.slq-phone__island {
  position: absolute; z-index: 2; top: 12px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 24px; border-radius: 20px; background: #000;
}
.slq-phone__media { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Static posts or a feed: content scrolls inside the screen */
.slq-phone__screen--scroll { overflow-y: auto; scrollbar-width: none; padding-top: 44px; box-sizing: border-box; background: #fff; }
.slq-phone__screen--scroll::-webkit-scrollbar { display: none; }
.slq-phone__screen--scroll img { width: 100%; height: auto; display: block; margin-bottom: 4px; }

/* Play hint on video phones; hides once the full reel is playing */
.slq-phone__play {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 14px;
  border: 0; border-radius: var(--slq-radius-pill); cursor: pointer;
  background: rgba(1, 23, 51, 0.72); color: var(--slq-linen);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 0.8125rem/1 var(--slq-font-body);
  transition: background var(--slq-base) var(--slq-ease-out);
}
.slq-phone__play:hover { background: var(--slq-navy); }
.slq-phone__play svg { width: 12px; height: 12px; }
.slq-phone.is-full .slq-phone__play { display: none; }

.slq-phone__caption { margin-top: 16px; text-align: center; font-size: var(--slq-text-small); color: var(--slq-muted); }

@media (hover: hover) {
  .slq-phone { transition: transform var(--slq-slow) var(--slq-ease-out); }
  .slq-phone:hover { transform: translateY(-6px) rotate(-1deg); }
}

@media (max-width: 1024px) { .slq-phone { --w: 240px; } .slq-phones { gap: 24px; } }
/* Phones: one row you swipe sideways, each phone snaps into place */
@media (max-width: 699.98px) {
  .slq-phones { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 24px; margin: 0 -16px; scrollbar-width: none; }
  .slq-phones::-webkit-scrollbar { display: none; }
  .slq-phone { --w: 220px; scroll-snap-align: center; }
}

/* Caption sits under the phone, outside the frame */
.slq-phone { margin-bottom: 44px; }
.slq-phone__caption { position: absolute; left: -20px; right: -20px; top: 100%; margin-top: 14px; }
