/* Featured Post Block - Base Styles */
.featured-post-block {
    margin-bottom: 2rem;
}

/* Featured Post Link */
.featured-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Placeholder (Editor Only) */
.featured-post-placeholder {
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.featured-post-placeholder-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-post-placeholder p {
    margin: 0.5rem 0;
    color: #666;
}

.featured-post-placeholder .description {
    font-size: 0.9rem;
    font-style: italic;
    color: #999;
}

/* Featured Post Content */
.featured-post-content {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Featured Post Image */
.featured-post-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.featured-post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Featured Post Body */
.featured-post-body {
    padding: 2rem;
}

.featured-post-title {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.featured-post-subtitle {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* Post Meta */
.featured-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.9rem;
    color: #666;
}

.featured-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.featured-post-meta .post-date::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23666"><path d="M5 2h10a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V4a2 2 0 012-2zm0 2v14h10V4H5zm2 2h6v2H7V6zm0 4h6v2H7v-2z"/></svg>') center/contain no-repeat;
    margin-right: 0.3rem;
}

.featured-post-meta .post-author::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23666"><path d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z"/></svg>') center/contain no-repeat;
    margin-right: 0.3rem;
}

.featured-post-meta .post-categories::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23666"><path fill-rule="evenodd" d="M17.707 9.293a1 1 0 010 1.414l-7 7a1 1 0 01-1.414 0l-7-7A.997.997 0 012 10V5a3 3 0 013-3h5c.256 0 .512.098.707.293l7 7zM5 6a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"/></svg>') center/contain no-repeat;
    margin-right: 0.3rem;
}

.featured-post-meta .post-reading-time::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23666"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z" clip-rule="evenodd"/></svg>') center/contain no-repeat;
    margin-right: 0.3rem;
}

/* Hide icons when no-icons class is present */
.no-icons .featured-post-meta .post-date::before,
.no-icons .featured-post-meta .post-author::before,
.no-icons .featured-post-meta .post-categories::before,
.no-icons .featured-post-meta .post-reading-time::before,
.no-icons .featured-post-contributors .contributors-label::before {
    display: none;
}

.no-icons .featured-post-meta span {
    gap: 0;
}

.no-icons .featured-post-contributors .contributors-label {
    margin-left: 0;
}

/* Contributors */
.featured-post-contributors {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 0.9rem;
}

.featured-post-contributors .contributors-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
}

.featured-post-contributors .contributors-label::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23666"><path d="M9 6a3 3 0 11-6 0 3 3 0 016 0zM17 6a3 3 0 11-6 0 3 3 0 016 0zM12.93 17c.046-.327.07-.66.07-1a6.97 6.97 0 00-1.5-4.33A5 5 0 0119 16v1h-6.07zM6 11a5 5 0 015 5v1H1v-1a5 5 0 015-5z"/></svg>') center/contain no-repeat;
    margin-right: 0.5rem;
}

.featured-post-contributors .contributors-list {
    color: #444;
}

.featured-post-contributors .contributor-name {
    display: inline;
}

/* Excerpt */
.featured-post-excerpt {
    margin: 1rem 0;
    color: #444;
    line-height: 1.6;
}

.featured-post-excerpt p {
    margin: 0;
}

/* CTA Button */
.featured-post-cta {
    margin-top: 1.5rem;
}

.featured-post-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.featured-post-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Layout: Card (Default) */
.featured-post--card .featured-post-image {
    aspect-ratio: 16 / 9;
}

.featured-post--card .featured-post-image img {
    height: 100%;
}

/* Layout: Horizontal */
.featured-post--horizontal .featured-post-content {
    flex-direction: row;
}

.featured-post--horizontal .featured-post-image {
    flex: 0 0 40%;
    aspect-ratio: 4 / 3;
}

.featured-post--horizontal .featured-post-image img {
    height: 100%;
}

.featured-post--horizontal .featured-post-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Layout: Minimal */
.featured-post--minimal .featured-post-content {
    box-shadow: none;
    border: 1px solid #e5e5e5;
}

.featured-post--minimal .featured-post-content:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.featured-post--minimal .featured-post-image {
    aspect-ratio: 21 / 9;
}

.featured-post--minimal .featured-post-title {
    font-size: 1.5rem;
}

.featured-post--minimal .featured-post-body {
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-post--horizontal .featured-post-content {
        flex-direction: column;
    }
    
    .featured-post--horizontal .featured-post-image {
        flex: 1;
        aspect-ratio: 16 / 9;
    }
    
    .featured-post-title {
        font-size: 1.5rem;
    }
    
    .featured-post-body {
        padding: 1.5rem;
    }
    
    .featured-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .featured-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .featured-post-title {
        font-size: 1.25rem;
    }
}

/* Alignment */
.has-text-align-center {
    text-align: center;
}

.has-text-align-left {
    text-align: left;
}

.has-text-align-right {
    text-align: right;
}

/* WordPress Block Supports */
.featured-post-block.alignwide {
    max-width: var(--wp--custom--wide-size, 1200px);
}

.featured-post-block.alignfull {
    max-width: 100%;
}

