/**
 * File: /var/www/flippulse.ohiomade.us/public/assets/css/shorts.css
 * Version: v1.4.0-immersive-shorts-overlay-mode
 * Last edited: 2026-05-15 04:48:00 -0400
 *
 * FlipPulse Shorts — Immersive full-screen view
 */

body.fp-page-shorts {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 0 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(14,165,233,.20), transparent 38%),
    radial-gradient(circle at 12% 22%, rgba(124,58,237,.14), transparent 34%),
    #020617;
}

/* Shorts owns the shell differently:
   header + bottom nav become overlays, not page space. */

body.fp-page-shorts .fp-shell-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 120 !important;
  padding:
    calc(8px + env(safe-area-inset-top))
    12px
    8px !important;
  background:
    linear-gradient(180deg, rgba(2,6,23,.88), rgba(2,6,23,.42), rgba(2,6,23,0)) !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition:
    transform .22s ease,
    opacity .22s ease;
}

body.fp-page-shorts .fp-shell-inner {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  gap: 10px !important;
}

body.fp-page-shorts .fp-shell-brand {
  width: auto !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
}

body.fp-page-shorts .fp-shell-logo-mark {
  width: 34px !important;
  height: 34px !important;
  border-radius: 13px !important;
  background: rgba(15,23,42,.58) !important;
  border: 1px solid rgba(56,189,248,.28) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

body.fp-page-shorts .fp-shell-brand-text strong {
  font-size: .95rem !important;
  font-weight: 900 !important;
}

body.fp-page-shorts .fp-shell-brand-text span {
  display: none !important;
}

body.fp-page-shorts .fp-shell-nav {
  justify-content: flex-end !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

body.fp-page-shorts .fp-shell-nav::-webkit-scrollbar {
  display: none !important;
}

body.fp-page-shorts .fp-shell-nav-link {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: rgba(15,23,42,.42) !important;
  border: 1px solid rgba(148,163,184,.16) !important;
  color: #f8fafc !important;
  display: inline-grid !important;
  place-items: center !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

body.fp-page-shorts .fp-shell-nav-link span {
  display: none !important;
}

body.fp-page-shorts .fp-shell-nav-link.is-active {
  background: rgba(14,165,233,.20) !important;
  border-color: rgba(14,165,233,.58) !important;
}

body.fp-page-shorts .fp-shell-main {
  height: 100vh !important;
  height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.fp-page-shorts .fp-shell-bottom-nav {
  position: fixed !important;
  left: 10px !important;
  right: 10px !important;
  bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  z-index: 125 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition:
    transform .22s ease,
    opacity .22s ease;
}

body.fp-page-shorts .fp-shell-bottom-link {
  height: 40px !important;
  min-height: 40px !important;
  max-width: 128px !important;
  border-radius: 999px !important;
  background: rgba(2,6,23,.60) !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  color: #f8fafc !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 12px !important;
  font-size: .74rem !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

body.fp-page-shorts .fp-shell-bottom-link.is-active {
  background: rgba(14,165,233,.18) !important;
  border-color: rgba(14,165,233,.62) !important;
}

/* optional JS state: hide controls while watching */
body.fp-page-shorts.fp-controls-hidden .fp-shell-topbar {
  opacity: 0 !important;
  transform: translateY(-18px) !important;
  pointer-events: none !important;
}

body.fp-page-shorts.fp-controls-hidden .fp-shell-bottom-nav {
  opacity: 0 !important;
  transform: translateY(18px) !important;
  pointer-events: none !important;
}

body.fp-page-shorts.fp-controls-hidden .fp-actions,
body.fp-page-shorts.fp-controls-hidden .fp-sound {
  opacity: .22;
}

/* Icon sizing */
body.fp-page-shorts .fp-icon,
body.fp-page-shorts .fp-shell-nav-icon,
body.fp-page-shorts .fp-shell-bottom-icon,
body.fp-page-shorts .fp-shell-logo-icon {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  color: currentColor !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  flex: 0 0 auto !important;
}

/* Shorts layout */
.fp-shorts-shell {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.fp-shorts {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.fp-shorts::-webkit-scrollbar {
  display: none;
}

.fp-short {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  position: relative;
}

.fp-videoWrap {
  width: 100%;
  height: 100%;
  max-width: 760px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  border: 0;
  box-shadow: none;
}

.fp-videoWrap video,
.fp-videoWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.fp-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,6,23,.66), transparent 20%, transparent 58%, rgba(2,6,23,.82)),
    linear-gradient(90deg, transparent 52%, rgba(2,6,23,.24));
  z-index: 5;
}

.fp-meta {
  position: absolute;
  top: calc(78px + env(safe-area-inset-top));
  left: 18px;
  right: 82px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform .22s ease,
    opacity .22s ease;
}

.fp-title {
  width: fit-content;
  max-width: 100%;
  color: #f8fafc;
  background: rgba(2,6,23,.54);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  padding: 7px 10px;
  font-size: .82rem;
  font-weight: 950;
  line-height: 1.22;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fp-user-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.fp-user,
.fp-tag,
.fp-short-badge {
  width: fit-content;
  color: #dbeafe;
  background: rgba(2,6,23,.44);
  border: 1px solid rgba(148,163,184,.17);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .66rem;
  font-weight: 850;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fp-actions {
  position: absolute;
  right: 16px;
  bottom: calc(112px + env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform .22s ease,
    opacity .22s ease;
}

.fp-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(15,23,42,.64);
  color: #f8fafc;
  display: grid;
  place-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
}

.fp-action-btn .fp-icon {
  width: 21px !important;
  height: 21px !important;
  min-width: 21px !important;
  min-height: 21px !important;
  max-width: 21px !important;
  max-height: 21px !important;
}

.fp-action-btn.is-active {
  border-color: rgba(56,189,248,.62);
  background: rgba(14,165,233,.22);
}

.fp-sound {
  position: absolute;
  left: 18px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 16;
  height: 36px;
  min-width: 82px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(2,6,23,.64);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 11px;
  font-size: .7rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-appearance: none;
  appearance: none;
  transition:
    transform .22s ease,
    opacity .22s ease;
}

.fp-sound .fp-icon {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
}

.fp-short-empty,
.fp-short-error {
  padding: calc(110px + env(safe-area-inset-top)) 14px 30px;
  text-align: center;
  font-size: .78rem;
}

.fp-short-empty {
  color: #94a3b8;
}

.fp-short-error {
  color: #fecaca;
}

/* Desktop: immersive center stage */
@media (min-width: 900px) {
  body.fp-page-shorts .fp-shell-topbar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(100%, 900px) !important;
  }

  body.fp-page-shorts.fp-controls-hidden .fp-shell-topbar {
    transform: translateX(-50%) translateY(-18px) !important;
  }

  body.fp-page-shorts .fp-shell-bottom-nav {
    display: none !important;
  }

  .fp-shorts {
    max-width: 1180px;
    margin: 0 auto;
  }

  .fp-short {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(360px, 460px) minmax(160px, 1fr);
    gap: 24px;
    padding: calc(72px + env(safe-area-inset-top)) 24px 24px;
    align-items: center;
  }

  .fp-videoWrap {
    grid-column: 2;
    width: min(54vh, 460px);
    height: min(calc(100vh - 110px), 820px);
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 18px 56px rgba(0,0,0,.38);
    justify-self: center;
  }

  .fp-meta {
    top: 18px;
    left: 18px;
    right: 76px;
  }

  .fp-actions {
    right: -62px;
    bottom: 120px;
  }

  .fp-sound {
    left: 18px;
    bottom: 18px;
  }
}

@media (max-width: 520px) {
  body.fp-page-shorts .fp-shell-brand-text span {
    display: none !important;
  }

  body.fp-page-shorts .fp-shell-brand-text strong {
    font-size: .92rem !important;
  }

  body.fp-page-shorts .fp-shell-nav-link {
    width: 38px !important;
    min-width: 38px !important;
  }

  body.fp-page-shorts .fp-shell-bottom-link {
    font-size: .72rem !important;
  }

  .fp-meta {
    left: 14px;
    right: 76px;
  }

  .fp-actions {
    right: 13px;
  }

  .fp-sound {
    left: 14px;
  }
}