/* Hero Customizations */
/* Styles pour les nouvelles fonctionnalités du hero */

/* Hero Latest Post Styles */
.np-hero-latest-post {
    display: flex;
    gap: var(--np-spacing-lg);
    align-items: center;
    text-align: left;
}

.np-hero-post-thumbnail {
    flex: 0 0 200px;
    max-width: 200px;
}

.np-hero-post-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--np-border-radius);
    transition: transform 0.3s ease;
}

.np-hero-post-thumbnail:hover .np-hero-post-image {
    transform: scale(1.05);
}

.np-hero-post-content {
    flex: 1;
}

.np-hero-post-title {
    font-size: 1.75rem;
    margin-bottom: var(--np-spacing-sm);
    line-height: 1.3;
}

.np-hero-post-title a {
    color: var(--np-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.np-hero-post-title a:hover {
    color: var(--np-primary-color);
}

.np-hero-post-excerpt {
    color: var(--np-text-color);
    opacity: 0.8;
    margin-bottom: var(--np-spacing-md);
    line-height: 1.6;
}

.np-hero-post-meta {
    display: flex;
    gap: var(--np-spacing-md);
    margin-bottom: var(--np-spacing-md);
    font-size: 0.875rem;
    color: var(--np-text-color);
    opacity: 0.7;
}

.np-hero-post-date,
.np-hero-post-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Hero Custom HTML/IFRAME Styles */
.np-hero-custom-content {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-hero-custom-content iframe {
    max-width: 100%;
    border: none;
    border-radius: var(--np-border-radius);
}

.np-hero-custom-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--np-border-radius);
}

/* Hero Image Styles */
.np-hero-image-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-repeat: no-repeat;
    border-radius: var(--np-border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.np-hero-image-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: var(--np-spacing-lg);
}

.np-hero-title-overlay {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--np-spacing-sm);
}

.np-hero-subtitle-overlay {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .np-hero-latest-post {
        flex-direction: column;
        text-align: center;
        gap: var(--np-spacing-md);
    }
    
    .np-hero-post-thumbnail {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .np-hero-post-image {
        height: 200px;
    }
    
    .np-hero-post-title {
        font-size: 1.5rem;
    }
    
    .np-hero-post-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .np-hero-image-container {
        min-height: 200px;
    }
    
    .np-hero-image-content {
        padding: var(--np-spacing-md);
    }
    
    .np-hero-title-overlay {
        font-size: 1.75rem;
    }
    
    .np-hero-subtitle-overlay {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .np-hero-post-title {
        font-size: 1.25rem;
    }
    
    .np-hero-post-excerpt {
        font-size: 0.875rem;
    }
    
    .np-hero-post-meta {
        font-size: 0.8rem;
        gap: var(--np-spacing-sm);
    }
    
    .np-hero-image-container {
        min-height: 150px;
    }
    
    .np-hero-title-overlay {
        font-size: 1.5rem;
    }
    
    .np-hero-subtitle-overlay {
        font-size: 0.875rem;
    }
}

/* Animation for hero content */
.np-hero-latest-post,
.np-hero-custom-content,
.np-hero-image-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom content styling */
.np-hero-custom-content h1,
.np-hero-custom-content h2,
.np-hero-custom-content h3,
.np-hero-custom-content h4,
.np-hero-custom-content h5,
.np-hero-custom-content h6 {
    color: var(--np-text-color);
    margin-bottom: var(--np-spacing-sm);
}

.np-hero-custom-content p {
    color: var(--np-text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: var(--np-spacing-sm);
}

.np-hero-custom-content a {
    color: var(--np-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.np-hero-custom-content a:hover {
    color: var(--np-secondary-color);
}

/* Ensure proper spacing for all hero content types */
.np-hero-card {
    overflow: hidden;
}

.np-hero-card > *:first-child {
    margin-top: 0;
}

.np-hero-card > *:last-child {
    margin-bottom: 0;
} 