/* -------------------------------- */
/* 1. Post Card Layout              */
/* -------------------------------- */

.post-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--entry);
    border-radius: var(--radius);
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s ease;
    cursor: pointer;
}

.post-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.post-entry:active {
    transform: translateY(0) scale(0.985);
    transition: transform 0.1s ease;
}

/* Prevent animation on homepage intro */
.first-entry-home-info {
    transform: none !important;
    box-shadow: none !important;
}

/* -------------------------------- */
/* 2. Content Link Wrapper          */
/* -------------------------------- */

.content-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

/* -------------------------------- */
/* 3. Metadata Footer               */
/* -------------------------------- */

.entry-footer {
    margin-top: 15px;
    line-height: 2.2;
    color: var(--secondary);
}

/* -------------------------------- */
/* 4. Shared Meta Item Layout       */
/* -------------------------------- */

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.meta-item svg {
    opacity: 0.7;
    color: var(--secondary);
}

/* -------------------------------- */
/* 5. Meta Links Base Style         */
/* -------------------------------- */

.entry-footer a.meta-link {
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.2s ease;
}

/* -------------------------------- */
/* 6. Category Styling              */
/* -------------------------------- */

.entry-footer a.meta-cat {
    color: var(--primary) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-right: 5px;
    position: relative;
    padding-bottom: 1px;
}

.entry-footer a.meta-cat:hover {
    filter: brightness(1.2);
}

.entry-footer a.meta-cat::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.entry-footer a.meta-cat:hover::after {
    width: 100%;
}

/* -------------------------------- */
/* 7. Tag "Pill" Styling            */
/* -------------------------------- */

.entry-footer a.meta-tag {
    background: var(--tertiary);
    color: var(--primary) !important;
    padding: 2px 10px;
    margin: 0 4px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border);

    transition:
        background-color 0.3s cubic-bezier(0.4,0,0.2,1),
        color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.entry-footer a.meta-tag:hover {
    background: var(--primary);
    color: var(--theme) !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* -------------------------------- */
/* 8. Featured First Entry Cleanup  */
/* -------------------------------- */

.first-entry {
    background: transparent !important;
    border: none !important;
    padding-bottom: var(--gap);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--gap);
}

/* ----------------------------------------------- */
/* 9. Intentional tag names, e.g., iOS -- not Ios  */
/* ---------------------------------------------- */

ul.post-tags li a {
    text-transform: none !important;
  }