/**
 * Custom Featured Posts Widget Styles
 */

.custom-featured-posts-widget {
    margin-bottom: 20px;
}

.custom-featured-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-featured-post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    transition: opacity 0.2s ease;
}

.custom-featured-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.custom-featured-post-item:hover {
    opacity: 0.8;
}

.custom-featured-post-link {
    display: block;
    flex-shrink: 0;
    margin-right: 12px;
    text-decoration: none;
}

.custom-featured-post-thumbnail {
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f0f0f0;
    position: relative;
}

.custom-featured-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.custom-featured-post-item:hover .custom-featured-post-thumbnail img {
    transform: scale(1.05);
}

.custom-featured-post-content {
    flex: 1;
    min-width: 0;
}

.custom-featured-post-title {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.custom-featured-post-title:hover {
    color: #2271b1;
    text-decoration: underline;
}

/* サムネイルなしの場合のスタイル */
.custom-featured-post-item:not(:has(.custom-featured-post-thumbnail)) .custom-featured-post-content {
    margin-left: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .custom-featured-post-thumbnail {
        width: 100px;
        height: 70px;
    }
    
    .custom-featured-post-title {
        font-size: 13px;
    }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    .custom-featured-post-item {
        border-bottom-color: #444;
    }
    
    .custom-featured-post-title {
        color: #e5e5e5;
    }
    
    .custom-featured-post-title:hover {
        color: #72aee6;
    }
    
    .custom-featured-post-thumbnail {
        background-color: #2a2a2a;
    }
}
