/**
 * Latest Posts Widget Styles
 * CSS styles for the Latest Posts Widget component
 *
 * @package Bonusovekody
 * @since 2.0.0
 */

/* ============================================
 * POST LIST CONTAINER
 * ============================================ */

.postList {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: 0;
}

/* ============================================
 * POST LIST ITEM
 * ============================================ */

.postList .postListItem {
    display: flex;
    gap: 14px;
    align-items: stretch;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.postList .postListItem:hover {
    text-decoration: none;
    opacity: 0.9;
}

.postList .postListItem:hover .postListItem__title {
    text-decoration: underline;
}

/* ============================================
 * POST LIST IMAGE
 * ============================================ */

.postList .postListItem__imageWrapper {
    position: relative;
    width: 75px;
    aspect-ratio: 1 / 1;
    flex: 0 0 75px;
}

.postList .postListItem__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-base);
}

/* ============================================
 * POST LIST META
 * ============================================ */

.postListItem__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.post-sidebar .postList .postListItem__title,
.mobile-related-panel .postList .postListItem__title {
    line-height: var(--line-height-base);
    background-color: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
}

.postList .postListItem__modifiedDate {
    font-size: var(--font-size-small);
    line-height: 16px;
    color: #666;
}

.postList .postListItem__modifiedDate span {
    display: none;
}

/* ============================================
 * WIDGET FOOTER
 * ============================================ */

.widget__footerCta .btn-primary {
    width: 100%;
    margin-top: var(--space-6);
}