/* ==========================================================================
   Block: Hero Post
   ========================================================================== */

.block-hero-post {
    padding: 8rem 0 4rem;
    background: url(../../../assets/images/gradient-4.png);
    background-size: 100px 60%;
    background-repeat: repeat-x;
    margin-bottom: 0 !important;
}

.block-hero-post__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Content */
.block-hero-post__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Category pill */
.block-hero-post__category {
    display: inline-block;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--maax);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    color: currentColor;
    border-radius: 6px;
    padding: 6px 6px 4px 6px;
    margin-bottom: 1.5rem;
}

/* Title */
.block-hero-post__title {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
}

/* Date */
.block-hero-post__date {
    font-family: var(--wp--preset--font-family--maax);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    opacity: 0.6;
    margin-top: 1rem;
}

/* Meta (event-type posts) */
.block-hero-post__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.block-hero-post__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--wp--preset--font-family--maax);
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
}

.block-hero-post__meta-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Excerpt */
.block-hero-post__excerpt {
    font-size: var(--wp--preset--font-size--normal);
    line-height: 1.6;
    margin: 0;
    opacity: 0.75;
}

/* Scroll hint */
.block-hero-post__scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--wp--preset--color--contrast, #202333);
    cursor: pointer;
    color: var(--wp--preset--color--base, #fff);
    margin-top: 2rem;
    animation: hero-post-bounce 2s ease-in-out infinite;
}

.block-hero-post__scroll-hint:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@keyframes hero-post-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Image */
.block-hero-post__image {
    max-width: 800px;
    width: 100%;
}

.block-hero-post__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
}

/* Anchor */
.block-hero-post__anchor {
    position: relative;
    height: 0;
    overflow: hidden;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .block-hero-post__scroll-hint {
        animation: none;
    }
}

@media (max-width: 768px) {
    .block-hero-post__inner {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 2rem;
    }
}
