/* pulse_ui.css v0.03 — TikTok/Instagram inspired vertical right rail */

[hidden].pulse-sheet, [hidden].pulse-modal, [hidden].pulse-more-menu { display: none !important; }

/* ── Sticky vertical right rail · TikTok-style position ── */
.pulse-bar-sticky {
    position: fixed;
    top: 45%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.pulse-bar-sticky .pulse-bar { pointer-events: auto; }
.pulse-bar-sticky .pulse-bar {
    flex-direction: column;
    gap: 22px;
    align-items: center;
}

/* ── Botones · TikTok feel · solo SVG con drop-shadow · sin caja ── */
.pulse-bar-sticky .pulse-btn {
    background: transparent;
    border: 0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #fff;
    position: relative;
    transition: transform 0.15s;
}
.pulse-bar-sticky .pulse-btn:hover { transform: scale(1.08); }
.pulse-bar-sticky .pulse-btn:active { transform: scale(0.88); }
.pulse-bar-sticky .pulse-btn:hover { transform: scale(1.06); }

.pulse-bar-sticky .pulse-icon-svg {
    width: 34px;
    height: 34px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.pulse-bar-sticky .pulse-count {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Active states · heart fill rojo TikTok-style */
.pulse-bar-sticky .pulse-btn-like.on .pulse-icon-heart {
    color: #FE2C55;
}
.pulse-bar-sticky .pulse-btn-follow.on .pulse-icon-follow {
    stroke: #FE2C55;
}
.pulse-bar-sticky .pulse-btn-follow.on .pulse-follow-plus { display: none; }

/* More menu (Denunciar) */
.pulse-more-menu {
    position: absolute;
    right: 50px;
    top: 0;
    min-width: 180px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
    padding: 6px;
    z-index: 100;
}
.pulse-more-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
}
.pulse-more-item:hover { background: #2a2a2a; }

/* ── Share sheet (sin cambios) ── */
.pulse-sheet {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45);
    display: flex; align-items: flex-end; justify-content: center; z-index: 9999;
    animation: pulseSheetIn 0.18s ease-out;
}
.pulse-sheet-inner {
    background: #fff; width: 100%; max-width: 480px; border-radius: 16px 16px 0 0;
    padding: 16px 16px 24px; box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
}
.pulse-sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pulse-sheet-header h3 { margin: 0; font-size: 16px; color: #111; }
.pulse-sheet-header button { background: none; border: 0; font-size: 18px; cursor: pointer; color: #666; }
.pulse-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pulse-share-opt {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 4px; border: 0; background: transparent; cursor: pointer;
    color: #111; font-size: 11px; font-weight: 500; border-radius: 8px;
}
.pulse-share-opt:hover { background: #f4f4f5; }
.pulse-share-ico {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 700;
}

/* Report modal (sin cambios) */
.pulse-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
    padding: 20px; animation: pulseModalIn 0.18s ease-out;
}
.pulse-modal-inner {
    background: #fff; max-width: 420px; width: 100%; border-radius: 12px;
    padding: 22px; box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.pulse-modal-inner h3 { margin: 0 0 8px; font-size: 17px; color: #111; }
.pulse-modal-inner p { font-size: 13px; color: #555; line-height: 1.5; margin: 0 0 14px; }
.pulse-report-reasons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.pulse-report-reasons label {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    border: 1px solid #e0e0e0; border-radius: 8px; font-size: 13px; cursor: pointer;
}
.pulse-report-reasons label:has(input:checked) { border-color: #ff3040; background: #fff5f5; }
.pulse-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.pulse-btn-cancel, .pulse-btn-confirm {
    padding: 10px 18px; border-radius: 8px; border: 0; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pulse-btn-cancel { background: #f0f0f0; color: #111; }
.pulse-btn-confirm { background: #ff3040; color: #fff; }
.pulse-btn-confirm:hover { background: #e02030; }

/* Toast */
.pulse-toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,0.85); color: #fff; padding: 10px 18px;
    border-radius: 999px; font-size: 13px; z-index: 10000;
    opacity: 0; transition: opacity 0.25s, transform 0.25s;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pulse-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pulse-toast.ok { background: rgba(34,197,94,0.92); }

@keyframes pulseSheetIn { from { background: transparent } to { background: rgba(0,0,0,0.45) } }
@keyframes pulseModalIn { from { opacity: 0 } to { opacity: 1 } }


/* Heart pop on like-on (portado de stories.css stHeartPulse · ~150 bytes) */
.pulse-bar-sticky .pulse-btn-like.pulse-pop{animation:pulseHeartBeat .5s ease-out}
@keyframes pulseHeartBeat{0%{transform:scale(1)}40%{transform:scale(1.6)}100%{transform:scale(1)}}



/* ── Mis Likes · grid responsive · sheet modal ── */
.pulse-mylikes-inner{max-width:680px;max-height:80vh;display:flex;flex-direction:column}
.pulse-mylikes-body{flex:1;overflow-y:auto;padding-top:8px}
.pulse-mylikes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media(min-width:640px){.pulse-mylikes-grid{grid-template-columns:repeat(6,1fr)}}
.pulse-mylikes-card{display:block;text-decoration:none;color:inherit;border-radius:8px;overflow:hidden;background:#f6f6f7;transition:transform .12s}
.pulse-mylikes-card:hover{transform:translateY(-2px)}
.pulse-mylikes-photo{aspect-ratio:1;background:#ddd center/cover no-repeat}
.pulse-mylikes-name{padding:5px 6px 6px;font-size:11px;font-weight:500;color:#111;line-height:1.2;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pulse-mylikes-empty{text-align:center;padding:40px 16px;color:#888}
.pulse-mylikes-empty-icon{font-size:48px;margin-bottom:12px;opacity:.4}
.pulse-mylikes-loading{text-align:center;padding:24px;color:#999;font-size:14px}
.pulse-mylikes-more{display:block;margin:18px auto;padding:10px 22px;border:0;background:#FE2C55;color:#fff;font-size:13px;font-weight:600;border-radius:999px;cursor:pointer}
.pulse-mylikes-more[hidden],#pulseMyListEmpty[hidden],#pulseMyListLoading[hidden],#pulseMyList[hidden]{display:none!important}

/* Bell ring animation · follow toggle ON */
.pulse-bar-sticky .pulse-btn-follow.pulse-ring .pulse-icon-svg{animation:pulseBellRing .7s ease-out;transform-origin:top center}
@keyframes pulseBellRing{0%,100%{transform:rotate(0)}15%{transform:rotate(18deg)}30%{transform:rotate(-15deg)}45%{transform:rotate(12deg)}60%{transform:rotate(-8deg)}75%{transform:rotate(4deg)}}


/* Collapse toggle · stagger animation hacia/desde los 3 puntos (no persistente) */
.pulse-bar-sticky .pulse-bar .pulse-btn:not(.pulse-btn-more){transition:transform .55s cubic-bezier(.34,1.56,.64,1),opacity .4s ease,max-height .5s ease,margin .5s ease;transform-origin:center}
.pulse-bar-sticky .pulse-bar.collapsed .pulse-btn:not(.pulse-btn-more){transform:scale(.2) translateY(60px);opacity:0;pointer-events:none;max-height:0;margin:0;padding:0}
.pulse-bar-sticky .pulse-bar.collapsed{gap:0}
/* Stagger · el de más arriba sale primero al colapsar · entra primero al expandir */
.pulse-bar-sticky .pulse-bar .pulse-btn:nth-child(1){transition-delay:0ms}
.pulse-bar-sticky .pulse-bar .pulse-btn:nth-child(2){transition-delay:70ms}
.pulse-bar-sticky .pulse-bar .pulse-btn:nth-child(3){transition-delay:140ms}
.pulse-bar-sticky .pulse-bar .pulse-btn:nth-child(4){transition-delay:210ms}
.pulse-bar-sticky .pulse-bar .pulse-btn:nth-child(5){transition-delay:280ms}
