/* Blog Hero Block Frontend Styles */
.wp-block-crates-blog-hero {
    margin-bottom: 3rem; /* mb-12 */
    width: 100%;
}

.crates-blog-hero__container {
    display: block;
    border-radius: 1rem; /* rounded-2xl */
    overflow: hidden; /* overflow-hidden */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.crates-blog-hero__image-wrapper {
    position: relative;
    width: 100%;
    height: 25rem; /* h-[400px] */
    overflow: hidden;
}

.crates-blog-hero__image {
    width: 100%; /* w-full */
    height: 100%;
    object-fit: cover; /* object-cover */
    display: block;
}

.crates-blog-hero__gradient-overlay {
    position: absolute; /* absolute */
    top: 0; /* inset-0 */
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, #0A1914, transparent); /* bg-gradient-to-t from-[#0A1914] to-transparent */
}

.crates-blog-hero__content {
    position: absolute; /* absolute */
    bottom: 0; /* bottom-0 left-0 */
    left: 0;
    padding: 1.5rem; /* p-6 */
    width: 100%; /* w-full */
    color: #ffffff;
}

.crates-blog-hero__featured-badge {
    background-color: #F39A76; /* bg-[#F39A76] */
    color: #0A1914; /* text-[#0A1914] */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    padding: 0.25rem 0.75rem; /* px-3 py-1 */
    border-radius: 9999px; /* rounded-full */
    display: inline-block; /* inline-block */
    margin-bottom: 1rem; /* mb-4 */
}

.crates-blog-hero__title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 0.75rem; /* mb-3 */
    line-height: 1.25;
    color: #ffffff;
    transition: color 0.2s ease-in-out;
}

.crates-blog-hero__container:hover .crates-blog-hero__title {
    color: #F39A76;
}

.crates-blog-hero__excerpt {
    color: #E5E7EB; /* text-gray-200 */
    margin-bottom: 1rem; /* mb-4 */
    max-width: 32rem; /* max-w-2xl */
    line-height: 1.6;
}

.crates-blog-hero__meta {
    display: flex;
    align-items: center; /* items-center */
}

.crates-blog-hero__author-avatar {
    width: 2.5rem; /* w-10 h-10 */
    height: 2.5rem;
    border-radius: 50%; /* rounded-full */
    margin-right: 0.75rem; /* mr-3 */
    object-fit: cover;
}

.crates-blog-hero__author-info {
    flex: 1;
}

.crates-blog-hero__author-name {
    font-weight: 500; /* font-medium */
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.4;
}

.crates-blog-hero__meta-text {
    font-size: 0.875rem; /* text-sm */
    color: #D1D5DB; /* text-gray-300 */
    margin: 0;
    line-height: 1.4;
}

/* Medium devices and up (md:) */
@media (min-width: 768px) {
    .crates-blog-hero__image-wrapper {
        height: 31.25rem; /* md:h-[500px] */
    }

    .crates-blog-hero__content {
        padding: 2.5rem; /* md:p-10 */
    }

    .crates-blog-hero__title {
        font-size: 1.875rem; /* md:text-3xl */
    }
}

/* Large devices and up (lg:) */
@media (min-width: 1024px) {
    .crates-blog-hero__title {
        font-size: 2.25rem; /* lg:text-4xl */
    }
}

/* Ensure proper spacing in WordPress editor */
.wp-block-crates-blog-hero.alignwide,
.wp-block-crates-blog-hero.alignfull {
    width: 100%;
}

.wp-block-crates-blog-hero.alignfull .crates-blog-hero__container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading state */
.crates-blog-hero__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25rem;
    background-color: #0F2922;
    border-radius: 1rem;
    color: #D1D5DB;
}

/* Error state */
.crates-blog-hero__error {
    padding: 2rem;
    text-align: center;
    background-color: #163832;
    border-radius: 1rem;
    color: #D1D5DB;
}

/* Focus states for accessibility */
.crates-blog-hero__container:focus {
    outline: 2px solid #F39A76;
    outline-offset: 2px;
    border-radius: 1rem;
}

/* Responsive image improvements */
.crates-blog-hero__image {
    transition: transform 0.3s ease-in-out;
}

.crates-blog-hero__container:hover .crates-blog-hero__image {
    transform: scale(1.05);
}

/* Ensure text remains readable over all images */
.crates-blog-hero__gradient-overlay {
    background: linear-gradient(to top, rgba(10, 25, 20, 0.9), rgba(10, 25, 20, 0.3), transparent);
}