/* ========================================
   Shared Story Card Component
   Used by homepage and allStories page
   ======================================== */

.hp-story-card {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-section);
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hp-story-card__img {
    width: 100%;
    height: 260px;
    border-radius: var(--hp-radius-section);
    object-fit: cover;
}

.hp-story-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hp-story-card__title {
    font-family: 'FbMetali', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 40px;
    color: var(--hp-text);
}


.hp-story-card__desc {
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: var(--hp-text);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-story-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
}

.hp-story-card__author {
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: var(--hp-text-secondary);
}

/* Image wrapper — needed for absolute-positioned overlays */
.hp-story-card__img-wrap {
    position: relative;
}

/* Heart icon — positioned top-left of image */
.hp-story-card__heart {
    position: absolute;
    top: 12px;
    left: 12px;
    cursor: pointer;
    z-index: 1;
}
.hp-story-card__heart.hidden { display: none; }
.hp-story-card__img-wrap:hover .hp-story-card__heart.hidden { display: block; }
.hp-story-card__heart svg { width: 24px; height: 24px; }

/* "New" badge — positioned top-right of image */
.hp-story-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--hp-green);
    color: var(--hp-text);
    font-family: 'Heebo', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: var(--hp-radius-pill);
    z-index: 1;
}

/* Principle dots — between image and content */
.hp-story-card__principles {
    display: flex;
    gap: 4px;
    padding: 8px 16px 0;
}
