/**
 * HyzenPro Blog Widget Styles
 * 
 * Styles for featured blog posts and blog article listings
 * Matches prototype design exactly
 */

/* ========================================
   FEATURED BLOG POST
   ======================================== */
.hyzen-blog-featured {
    position: relative;
    overflow: hidden;
    height: clamp(400px, 60vh, 600px);
    background: var(--hyzen-muted, #f5f5f5);
    border-radius: var(--hyzen-radius, 0.75rem);
}

.hyzen-blog-featured-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hyzen-blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.hyzen-blog-featured:hover .hyzen-blog-featured-image img {
    transform: scale(1.05);
}

.hyzen-blog-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    color: hsl(var(--hyzen-primary-fg));
}

@media (min-width: 768px) {
    .hyzen-blog-featured-content {
        padding: 3rem;
    }
}

.hyzen-blog-date {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.hyzen-blog-featured-title {
    font-family: var(--hyzen-font-heading, 'Playfair Display', serif);
    font-weight: 700;
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hyzen-blog-excerpt {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    opacity: 0.95;
}

.hyzen-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: hsl(var(--hyzen-primary-fg));
    text-decoration: none;
    border-bottom: 2px solid hsl(var(--hyzen-primary-fg));
    padding-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.hyzen-blog-read-more:hover {
    padding-bottom: 0.5rem;
    gap: 0.75rem;
}

/* ========================================
   BLOG LIST ITEMS
   ======================================== */
.hyzen-blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hyzen-blog-item {
    background: hsl(var(--hyzen-bg));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: var(--hyzen-radius, 0.75rem);
    border: 1px solid hsl(var(--hyzen-border));
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .hyzen-blog-item {
        flex-direction: row;
        height: 200px;
    }
}

.hyzen-blog-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--hyzen-shadow-hover, 0 8px 30px rgba(0, 0, 0, 0.12));
}

.hyzen-blog-item-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .hyzen-blog-item-image {
        width: 40%;
        height: auto;
    }
}

.hyzen-blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.hyzen-blog-item:hover .hyzen-blog-item-image img {
    transform: scale(1.1);
}

.hyzen-blog-item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: hsl(var(--hyzen-bg));
}

@media (min-width: 768px) {
    .hyzen-blog-item-content {
        padding: 2rem;
    }
}

.hyzen-blog-item-date {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: hsl(var(--hyzen-muted-fg));
    margin-bottom: 0.5rem;
}

.hyzen-blog-item-title {
    font-family: var(--hyzen-font-heading, 'Playfair Display', serif);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    color: hsl(var(--hyzen-fg));
}

.hyzen-blog-item-excerpt {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: hsl(var(--hyzen-muted-fg));
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hyzen-blog-item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--hyzen-primary));
    text-decoration: none;
    transition: all 0.3s ease;
}

.hyzen-blog-item-link:hover {
    gap: 0.6rem;
}

/* ========================================
   BLOG GRID LAYOUT
   ======================================== */
.hyzen-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .hyzen-blog-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.hyzen-blog-featured-wrapper {
    grid-column: 1;
}

.hyzen-blog-list-wrapper {
    grid-column: 1;
}

@media (min-width: 1024px) {
    .hyzen-blog-list-wrapper {
        grid-column: 2;
        grid-row: 1;
    }
}

/* ========================================
   LOADING & ANIMATION STATES
   ======================================== */
.hyzen-blog-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.hyzen-blog-featured.visible,
.hyzen-blog-item.visible {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 640px) {
    .hyzen-blog-featured-content {
        padding: 1.5rem;
    }

    .hyzen-blog-featured-title {
        font-size: 1.5rem;
    }

    .hyzen-blog-excerpt {
        font-size: 0.9rem;
    }

    .hyzen-blog-item-content {
        padding: 1.25rem;
    }
}
