/**
 * Events Archive - Posts
 */

.ev-posts {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: #fafafa;
}

.ev-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ev-posts__empty {
    text-align: center;
    padding: 4rem 0;
    color: #666;
    font-family: var(--font-aeonik);
    font-size: 1.25rem;
}

.ev-posts__empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 1.5rem;
    background-color: #25282a;
    color: #fff;
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    margin-top: 1rem;
}

.ev-posts__empty-cta:hover {
    text-decoration: none;
    color: #fff;
}

/* Post Item Card */
.ev-post-item,
.ev-post-item:hover,
.ev-post-item:focus,
.ev-post-item:active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}

.ev-post-item__image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.ev-post-item__image-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 0, 0, 0.105) 55.08%,
        rgba(0, 0, 0, 0.488) 69.76%,
        rgba(0, 0, 0, 0.7)
    );
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.ev-post-item__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ev-post-item__placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.ev-post-item__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 3;
    position: relative;
    padding: 2rem;
}

.ev-post-item__date {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: var(--font-aeonik);
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: 4px;
}

.ev-post-item__title-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.ev-post-item__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.ev-post-item__title {
    color: #fff;
    font-family: var(--font-aeonik);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    text-wrap: balance;
    margin: 0;
    text-decoration: none;
}

@media (max-width: 992px) {
    .ev-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ev-posts {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .ev-posts__grid {
        grid-template-columns: 1fr;
    }

    .ev-post-item__title {
        font-size: 1.25rem;
    }
}
