/* ============================================================
   HIGHLIGHT VIEWER — CSS
   File: highlights/highlight.css
============================================================ */


/* ── Viewer wrapper ── */
.highlight-viewer {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 24px;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  background: #0f0f10;
  z-index: 99999;
  overflow: hidden;
}

.highlight-viewer.active {
  display: flex;
}


/* ══════════════════════════════════════════
   MAIN CONTAINER
══════════════════════════════════════════ */

.hl-container {
  position: relative;
  width: min(480px, 100%);
  height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}


/* ── Main image ── */
.hl-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}


/* ── Gradient overlay ── */
.hl-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    transparent 22%,
    transparent 70%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
  z-index: 5;
}


/* ══════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════ */

.hl-progress-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 20;
}

.prog-seg {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 3px;
}


/* ══════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════ */

.hl-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 20;
}

.hl-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hl-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.hl-user-info h4 {
  color: #fff;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.hl-user-info p {
  color: rgba(255, 255, 255, 0.7);
  margin: 2px 0 0;
  font-size: 11px;
}

.hl-actions {
  display: flex;
  gap: 8px;
}


/* ── Round icon buttons ── */
.hl-btn-round {
  width: 36px;
  height: 36px;
  border: none;
  outline: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.hl-btn-round:hover {
  background: rgba(255, 255, 255, 0.28);
}


/* ══════════════════════════════════════════
   TAP ZONES (invisible left / right halves)
══════════════════════════════════════════ */

.tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: 15;
  cursor: pointer;
}

.tap-prev { left: 0; }
.tap-next { right: 0; }


/* ══════════════════════════════════════════
   BOTTOM BAR
══════════════════════════════════════════ */

.hl-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  z-index: 20;
}

.hl-comment-box {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #fff;
}

.hl-comment-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
}

.hl-comment-box input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.hl-bottom-actions {
  display: flex;
  gap: 8px;
}


/* ══════════════════════════════════════════
   DROPDOWN MENU
══════════════════════════════════════════ */

.hl-menu {
  position: absolute;
  top: 72px;
  right: 14px;
  background: #1c1c1e;
  border-radius: 14px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 50;
  min-width: 150px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hl-menu.active {
  display: flex;
}

.hl-menu button {
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.hl-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}


/* ══════════════════════════════════════════
   SIDE PREVIEWS
══════════════════════════════════════════ */

.hl-preview {
  width: 200px;
  height: 74vh;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0.45;
  transform: scale(0.87);
  transition: opacity 0.25s, transform 0.25s;
  flex-shrink: 0;
  cursor: pointer;
}

.hl-preview:hover {
  opacity: 0.65;
  transform: scale(0.90);
}

.hl-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  display: block;
}


/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */

@keyframes likePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}


/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Mobile — full screen, no side previews */
@media (max-width: 900px) {
  .highlight-viewer {
    padding: 0;
    gap: 0;
  }

  .hl-preview {
    display: none !important;
  }

  .hl-container {
    width: 100% !important;
    height: 100dvh !important;
    border-radius: 0 !important;
  }
}

/* Large desktop (1400px+) — wider */
@media (min-width: 1400px) {
  .hl-container {
    width: 520px;
    height: 92vh;
  }

  .hl-preview {
    width: 220px;
    height: 76vh;
  }
}


/* ══════════════════════════════════════════
   NAV ARROWS (desktop only)
══════════════════════════════════════════ */

.highlight-001 {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hl-nav-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  outline: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.2s;
}

.hl-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hl-nav-arrow--prev { left: -60px; }
.hl-nav-arrow--next { right: -60px; }

@media (min-width: 900px) {
  .hl-nav-arrow {
    display: flex;
  }
}



@media (max-width: 650px){

    .highlight{
        justify-content: flex-start;
        gap: 10px;
        padding: 15px 20px 0 20px;
    }

    .highlight-ring{
        width: 100px;
        height: 100px;
    }

    .highlight-item span{
        font-size: 11px;
    }

    .big-screen-201 {
        margin-top: 10px;
        margin-bottom: 6px;
    }


  }
  @media (min-width: 751px){

    .highlight{
        justify-content: flex-start;
        padding-left: 30px;
    }
     .highlight-ring{
        width: 100px;
        height: 100px;
    }

}
@media (min-width: 1800px){

    .highlight{
        justify-content: center;
        padding-left: 30px;
        padding-right: 30px;
    }

}