/* =========================================
   HORIZON PULSE — STORAGE-ONLY FEED
   Deep Obsidian System (Renderer v2 Aligned)
   ========================================= */

.hp-feed-wrap {
    --hp-motion-fast: 0.15s;
    --hp-motion-base: 0.28s;
    --hp-motion-slow: 0.4s;
    --hp-ease-soft: cubic-bezier(0.33, 1, 0.32, 1);

    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 680px;
    margin: 0 auto;
}

/* ===============================
   Card
=============================== */

.hp-feed-item {
    display: flex;
    gap: 0;
    background: #121214;
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(0,0,0,0.34);
    transition:
        transform var(--hp-motion-base) var(--hp-ease-soft),
        box-shadow var(--hp-motion-base) var(--hp-ease-soft);
}

.hp-feed-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 42px rgba(0,0,0,0.4);
}

/* Anchor highlight */
.hp-feed-item:target {
    border-color: #2f6fe8;
    box-shadow: 0 0 28px rgba(47,111,232,0.14);
    background: #161618;
}

/* ===============================
   Thumbnail Aside
=============================== */

.hp-feed-aside {
    flex-shrink: 0;
    width: 160px;
    overflow: hidden;
}

.hp-feed-aside img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85) contrast(1.05);
}

/* ===============================
   Main Content
=============================== */

.hp-feed-main {
    flex: 1;
    padding: 26px;
    display: flex;
    flex-direction: column;
}

/* Header */

.hp-feed-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.hp-feed-header__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.hp-feed-spotlight-pill {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.2;
}

.hp-theme-light .hp-feed-spotlight-pill {
    color: rgba(15, 16, 20, 0.45);
}

/* Bounded rhythm label (mini_link pacing-follow only; presentation) */
.hp-feed-pacing-pill {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.2;
}

.hp-theme-light .hp-feed-pacing-pill {
    color: rgba(15, 16, 20, 0.4);
}

.hp-feed-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1 1 auto;
    min-width: 0;
}

.hp-feed-time {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.08em;
    flex-shrink: 0;
    max-width: 38%;
    text-align: right;
    line-height: 1.35;
}

/* Description */

.hp-feed-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.62;
    color: rgba(255,255,255,0.72);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hp-feed-desc p {
    margin: 0 0 10px 0;
}

/* ===============================
   Footer
=============================== */

.hp-feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: 12px;
}

/* CTA Button */

.hp-feed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    background: #2f6fe8;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition:
        background-color var(--hp-motion-base) var(--hp-ease-soft),
        color var(--hp-motion-base) var(--hp-ease-soft),
        box-shadow var(--hp-motion-base) var(--hp-ease-soft);
}

.hp-feed-btn:hover {
    background: #1f56c9;
}

/* Share Button */

.hp-feed-share,
.hp-pulse-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    cursor: pointer;
    transition:
        color var(--hp-motion-base) var(--hp-ease-soft),
        border-color var(--hp-motion-base) var(--hp-ease-soft),
        background-color var(--hp-motion-base) var(--hp-ease-soft);
}

.hp-feed-share:hover,
.hp-pulse-copy:hover {
    color: #ffffff;
    border-color: #2f6fe8;
    background: rgba(47,111,232,0.1);
}

.hp-pulse-copy.hp-copied {
    background: #2f6fe8 !important;
    color: #ffffff !important;
    border-color: #2f6fe8 !important;
    box-shadow: 0 0 14px rgba(47,111,232,0.22);
}

.hp-pulse-copy:active {
    transform: scale(0.985);
}

/* ===============================
   Empty State
=============================== */

.hp-no-pulses {
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.5);
    min-height: 4.5rem;
}

/* ===============================
   Light Theme Variant
=============================== */

.hp-theme-light .hp-feed-item {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.hp-theme-light .hp-feed-title {
    color: #111111;
}

.hp-theme-light .hp-feed-time {
    color: rgba(0,0,0,0.45);
}

.hp-theme-light .hp-feed-desc {
    color: rgba(0,0,0,0.75);
}

.hp-theme-light .hp-feed-footer {
    border-top: 1px solid rgba(0,0,0,0.08);
}

.hp-theme-light .hp-feed-share,
.hp-theme-light .hp-pulse-copy {
    color: rgba(0,0,0,0.5);
    border-color: rgba(0,0,0,0.15);
}

.hp-theme-light .hp-feed-share:hover,
.hp-theme-light .hp-pulse-copy:hover {
    background: rgba(47,111,232,0.1);
    border-color: #2f6fe8;
    color: #2f6fe8;
}

/* ===============================
   Responsive
=============================== */

@media (max-width: 640px) {
    .hp-feed-item {
        flex-direction: column;
    }

    .hp-feed-aside {
        width: 100%;
        min-height: 180px;
        height: auto;
    }

    .hp-feed-main {
        padding: 20px;
    }

    .hp-feed-footer {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .hp-feed-footer .hp-feed-btn,
    .hp-feed-footer .hp-feed-share,
    .hp-feed-footer .hp-pulse-copy {
        flex: 1 1 auto;
        min-width: min(100%, 10rem);
    }
}

/* ================================
   MINIMAL / PREMIUM MODE
================================ */

.hp-feed-wrap.hp-feed-stripped {
    max-width: none;
    margin: 0;
    gap: 0;
    width: 100%;
    font-family: inherit;
}

/* Remove card styling */
.hp-feed-wrap.hp-feed-stripped .hp-feed-item {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    transform: none;
    width: 100%;
    box-sizing: border-box;
}

/* Disable hover effects */
.hp-feed-wrap.hp-feed-stripped .hp-feed-item:hover {
    transform: none;
    box-shadow: none;
}

/* Remove aside */
.hp-feed-wrap.hp-feed-stripped .hp-feed-aside {
    display: none;
}

/* Layout */
.hp-feed-wrap.hp-feed-stripped .hp-feed-main {
    padding: 0;
}

/* Header */
.hp-feed-wrap.hp-feed-stripped .hp-feed-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 6px;
}

.hp-feed-wrap.hp-feed-stripped .hp-feed-header__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* Title */
.hp-feed-wrap.hp-feed-stripped .hp-feed-title {
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Time */
.hp-feed-wrap.hp-feed-stripped .hp-feed-time {
    font-size: 11px;
    opacity: 0.6;
    letter-spacing: 0.08em;
}

/* Description */
.hp-feed-wrap.hp-feed-stripped .hp-feed-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
}

/* Divider */
.hp-feed-wrap.hp-feed-stripped .hp-feed-desc::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin: 16px 0;
    background: currentColor;
    opacity: 0.2;
}

/* Footer */
.hp-feed-wrap.hp-feed-stripped .hp-feed-footer {
    border-top: 0;
    padding-top: 0;
    margin-top: 6px;
}

/* Remove CTA */
.hp-feed-wrap.hp-feed-stripped .hp-feed-btn {
    all: unset;
    display: inline-block;
    color: inherit;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    margin-bottom: 14px;
    line-height: 1;
    transition:
        transform var(--hp-motion-slow) var(--hp-ease-soft),
        opacity var(--hp-motion-base) var(--hp-ease-soft);
}

/* underline */
.hp-feed-wrap.hp-feed-stripped .hp-feed-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 0.25;
    transform-origin: left center;
    transform: scaleX(0.32);
    transition:
        transform var(--hp-motion-slow) var(--hp-ease-soft) 0.05s,
        opacity var(--hp-motion-base) var(--hp-ease-soft);
}

/* hover interaction */
.hp-feed-wrap.hp-feed-stripped .hp-feed-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.hp-feed-wrap.hp-feed-stripped .hp-feed-btn:hover::after {
    transform: scaleX(1);
    opacity: 0.6;
}

/* Copy link → text style */
.hp-feed-wrap.hp-feed-stripped .hp-pulse-copy {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    cursor: pointer;
    position: relative;
}

/* Underline hover */
.hp-feed-wrap.hp-feed-stripped .hp-pulse-copy::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--hp-motion-base) var(--hp-ease-soft);
}

.hp-feed-wrap.hp-feed-stripped .hp-pulse-copy:hover::after {
    width: 100%;
}

/* Reset copied state */
.hp-feed-wrap.hp-feed-stripped .hp-pulse-copy.hp-copied {
    background: none !important;
    color: inherit !important;
    border-color: currentColor !important;
    box-shadow: none;
    opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
    .hp-feed-item,
    .hp-feed-item:hover {
        transition: none;
        transform: none;
    }

    .hp-feed-btn,
    .hp-feed-share,
    .hp-pulse-copy {
        transition: none;
    }

    .hp-pulse-copy:active {
        transform: none;
    }

    .hp-feed-wrap.hp-feed-stripped .hp-feed-btn,
    .hp-feed-wrap.hp-feed-stripped .hp-feed-btn::after,
    .hp-feed-wrap.hp-feed-stripped .hp-pulse-copy::after {
        transition: none;
    }

    .hp-feed-wrap.hp-feed-stripped .hp-feed-btn:hover {
        transform: none;
    }
}