/**
 * Hello Plataforma · Feed Screen Styles
 *
 * Pantalla del feed para suscriptores activos.
 */


/* ============================================================
   CONTAINER
   ============================================================ */

.hp-feed-screen {
  background: var(--hp-bg-secondary);
  padding-bottom: 80px;
}


/* ============================================================
   FILTROS CHIP (fijo bajo el header)
   ============================================================ */

.hp-feed-filters {
  position: fixed;
  top: var(--hp-header-height, 56px);
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--hp-border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.hp-feed-filters::-webkit-scrollbar {
  display: none;
}

.hp-feed-filters .hp-pill {
  flex-shrink: 0;
  text-decoration: none;
}

/*
 * COMPENSACIÓN DEL ESPACIO QUE OCUPAN LOS FILTROS FIJOS
 * Aplicado directo al .hp-feed-list (no al wrapper que Elementor controla)
 * Con !important porque otros estilos del theme padre lo pueden sobrescribir
 */
.hp-feed-list {
  padding-top: 64px !important;
}

/* Centrar los filtros en desktop */
@media (min-width: 600px) {
  .hp-feed-filters {
    justify-content: center;
  }
}


/* ============================================================
   FEED LIST
   ============================================================ */

.hp-feed-list {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 0;
}


/* ============================================================
   POST CARD
   ============================================================ */

.hp-feed-post {
  background: var(--hp-bg-primary);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 0.5px var(--hp-border-purple),
    0 4px 16px -4px rgba(105, 73, 158, 0.06);
  border-radius: 0; /* full-bleed mobile */
}

@media (min-width: 600px) {
  .hp-feed-post {
    border-radius: 18px;
    margin: 0 16px 16px;
  }
}


/* ============================================================
   POST HEADER
   ============================================================ */

.hp-feed-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.hp-feed-post-meta {
  flex: 1;
  min-width: 0;
}

.hp-feed-post-creator {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text-primary);
  margin: 0;
  line-height: 1.2;
}

.hp-feed-post-time {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: var(--hp-text-tertiary);
  margin: 2px 0 0;
  line-height: 1.2;
}


/* ============================================================
   MEDIA CONTAINER (la pieza más importante)
   ============================================================ */

.hp-feed-post-media {
  position: relative;
  width: 100%;
  background: var(--hp-bg-card);
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hp-feed-post-image,
.hp-feed-post-image-blurred {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.hp-feed-post-video {
  width: 100%;
  max-height: 600px;
  display: block;
  background: #0A0A0A;
}

/* Versión blureada para PPV */
.hp-feed-post-image-blurred {
  filter: blur(30px) saturate(120%);
  transform: scale(1.1);
  pointer-events: none;
}

.hp-feed-post-blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(149, 117, 205, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}


/* ============================================================
   WATERMARK FORENSE
   Email del fan + timestamp, rotado, semi-transparente
   ============================================================ */

.hp-feed-post-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 5;
  overflow: hidden;
}

.hp-feed-post-watermark-text {
  font-family: var(--hp-font-mono);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
  transform: rotate(-15deg);
  white-space: nowrap;
  letter-spacing: 0.5px;
  -webkit-user-select: none;
  user-select: none;
}


/* ============================================================
   PPV UNLOCK OVERLAY
   ============================================================ */

.hp-feed-post-unlock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 10;
}

.hp-feed-post-unlock-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--hp-gradient-purple-button);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 8px 24px -4px rgba(105, 73, 158, 0.40);
}

.hp-feed-post-unlock-icon i {
  font-size: 28px;
  color: #FFFFFF;
}

.hp-feed-post-unlock-title {
  font-family: var(--hp-font-base);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.40);
}

.hp-feed-post-unlock-sub {
  font-family: var(--hp-font-base);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin: 4px 0 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.40);
}

.hp-feed-post-unlock-btn {
  min-width: 220px;
}


/* ============================================================
   ANTI-SHARE STRIP
   ============================================================ */

.hp-feed-post-protect-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(to top, rgba(15, 14, 22, 0.75), rgba(15, 14, 22, 0.40) 70%, transparent);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--hp-font-base);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  z-index: 6;
  pointer-events: none;
}

.hp-feed-post-protect-strip i {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}


/* ============================================================
   CAPTION
   ============================================================ */

.hp-feed-post-caption {
  padding: 12px 16px 4px;
}

.hp-feed-post-caption p {
  font-family: var(--hp-font-base);
  font-size: 14px;
  color: var(--hp-text-primary);
  margin: 0;
  line-height: 1.5;
  white-space: pre-line;
  word-break: break-word;
}


/* ============================================================
   ACTIONS BAR
   ============================================================ */

.hp-feed-post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 12px;
  border-top: 0.5px solid var(--hp-border-subtle);
  margin-top: 8px;
}

.hp-feed-post-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 500;
  color: var(--hp-text-secondary);
  transition: background-color var(--hp-duration-normal) var(--hp-ease),
              color var(--hp-duration-normal) var(--hp-ease),
              transform var(--hp-duration-fast) var(--hp-ease);
}

.hp-feed-post-action:hover {
  background: var(--hp-bg-card);
  color: var(--hp-text-primary);
}

.hp-feed-post-action:active {
  transform: scale(0.94);
}

.hp-feed-post-action i {
  font-size: 22px;
  line-height: 1;
}

.hp-feed-post-action-count {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 600;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* Like activo (corazón rojo) */
.hp-feed-post-action--like.is-active {
  color: var(--hp-red-error);
}

.hp-feed-post-action--like.is-active i {
  color: var(--hp-red-error);
  animation: hpHeartPop 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hpHeartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Tip button (highlight especial) */
.hp-feed-post-action--tip {
  margin-left: auto;
  color: var(--hp-purple-deep);
  font-weight: 600;
}

.hp-feed-post-action--tip:hover {
  background: rgba(149, 117, 205, 0.08);
  color: var(--hp-purple-anchor);
}

.hp-feed-post-action--tip i {
  color: var(--hp-purple-deep);
  font-size: 18px;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.hp-feed-empty {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hp-feed-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(212, 191, 232, 0.40) 0%, rgba(168, 135, 208, 0.20) 100%);
  border: 0.5px solid rgba(149, 117, 205, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hp-feed-empty-icon i {
  font-size: 32px;
  color: var(--hp-purple-deep);
}

.hp-feed-empty-title {
  font-family: var(--hp-font-base);
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.hp-feed-empty-sub {
  font-family: var(--hp-font-base);
  font-size: 13px;
  color: var(--hp-text-secondary);
  margin: 6px 0 0;
  line-height: 1.5;
  max-width: 280px;
}


/* ============================================================
   NO SUBSCRIPTION (fan logueado pero no suscrito)
   ============================================================ */

.hp-feed-no-sub {
  text-align: center;
  padding: 80px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--hp-bg-secondary);
  min-height: 70vh;
  justify-content: center;
}

.hp-feed-no-sub-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: var(--hp-gradient-purple-button);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 16px 40px -8px rgba(105, 73, 158, 0.40);
}

.hp-feed-no-sub-icon i {
  font-size: 40px;
  color: #FFFFFF;
}

.hp-feed-no-sub-title {
  font-family: var(--hp-font-base);
  font-size: 26px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
  letter-spacing: -0.6px;
}

.hp-feed-no-sub-sub {
  font-family: var(--hp-font-base);
  font-size: 14px;
  color: var(--hp-text-secondary);
  margin: 10px 0 24px;
  line-height: 1.55;
  max-width: 320px;
}

.hp-feed-no-sub-sub strong {
  color: var(--hp-text-primary);
  font-weight: 600;
}


/* ============================================================
   PROTECCIÓN ADICIONAL ANTI-COPIA
   Aplicado a todo el feed
   ============================================================ */

.hp-feed-screen img,
.hp-feed-screen video {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}