/* =========================================
   HORIZON PULSE — STORAGE-ONLY FEED
   Deep Obsidian System (Renderer v2 Aligned)
   ========================================= */

.hp-feed-wrap {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 680px;
    margin: 0 auto;
}

/* ===============================
   Card
=============================== */

.hp-feed-item {
    display: flex;
    gap: 0;
    background: #121214;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.45);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
}

.hp-feed-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 55px rgba(0,0,0,0.55);
}

/* Anchor highlight */
.hp-feed-item:target {
    border-color: #2f6fe8;
    box-shadow: 0 0 35px rgba(47,111,232,0.2);
    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;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.hp-feed-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.hp-feed-time {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.08em;
}

/* Description */

.hp-feed-desc {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.72);
}

.hp-feed-desc p {
    margin: 0 0 12px 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 {
    background: #2f6fe8;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.hp-feed-btn:hover {
    background: #1f56c9;
}

/* Share Button */

.hp-feed-share,
.hp-pulse-copy {
    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: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.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 18px rgba(47,111,232,0.35);
}

.hp-pulse-copy:active {
    transform: scale(0.96);
}

/* ===============================
   Empty State
=============================== */

.hp-no-pulses {
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* ===============================
   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%;
        height: 180px;
    }

    .hp-feed-main {
        padding: 20px;
    }
}

/* ----------------------------------------------------
   Horizon Pulse – Dark Theme Stabilised Styling
----------------------------------------------------- */

.hp-theme-dark .hp-feed-item {
    background: #111;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.hp-theme-dark .hp-feed-title {
    color: #ffffff;
}

.hp-theme-dark .hp-feed-desc {
    color: #cccccc;
}

.hp-theme-dark .hp-feed-time {
    color: #888888;
    font-size: 0.85rem;
}

.hp-theme-dark .hp-feed-btn {
    background: #ffffff;
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.hp-theme-dark .hp-feed-share {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.hp-theme-dark .hp-feed-share:hover {
    border-color: #555;
    color: #fff;
}

/* ================================
   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;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

/* 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 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease;
}

/* 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 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
                opacity 0.3s ease;
}

/* 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 0.3s ease;
}

.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;
}