/**
 * Blog Card Styles
 */

.blog-card-editor {
    border: 2px dashed #ccc;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
}

.blog-card-editor .blog-card-loading {
    text-align: center;
    padding: 40px 20px;
}

.blog-card-editor .blog-card-loading p {
    margin-top: 10px;
    color: #666;
}

.blog-card-editor .blog-card-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

.blog-card-editor .blog-card-error p {
    margin: 0;
    color: #856404;
}

.blog-card-editor .blog-card-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.blog-card-editor .blog-card-placeholder p {
    margin: 0;
}

.blog-card-preview,
.blog-card {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    max-width: 100%;
}

.blog-card-preview:hover,
.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.blog-card-preview .blog-card-image,
.blog-card .blog-card-image {
    flex-shrink: 0;
    width: 200px;
    height: auto;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-card-preview .blog-card-image img,
.blog-card .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-preview .blog-card-content,
.blog-card .blog-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.blog-card-preview .blog-card-site-name,
.blog-card .blog-card-site-name {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-preview .blog-card-title,
.blog-card .blog-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card-preview .blog-card-description,
.blog-card .blog-card-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card-preview .blog-card-url,
.blog-card .blog-card-url {
    font-size: 12px;
    color: #999;
    margin-top: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-card .blog-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.blog-card .blog-card-link:hover {
    text-decoration: none;
}

.blog-card .blog-card-link:hover .blog-card-title {
    color: #0073aa;
}

@media (max-width: 768px) {
    .blog-card-preview,
    .blog-card {
        flex-direction: column;
    }
    
    .blog-card-preview .blog-card-image,
    .blog-card .blog-card-image {
        width: 100%;
        height: 200px;
    }
    
    .blog-card-preview .blog-card-content,
    .blog-card .blog-card-content {
        padding: 15px;
    }
    
    .blog-card-preview .blog-card-title,
    .blog-card .blog-card-title {
        font-size: 16px;
    }
    
    .blog-card-preview .blog-card-description,
    .blog-card .blog-card-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blog-card-preview .blog-card-image,
    .blog-card .blog-card-image {
        height: 150px;
    }
    
    .blog-card-preview .blog-card-content,
    .blog-card .blog-card-content {
        padding: 12px;
    }
    
    .blog-card-preview .blog-card-title,
    .blog-card .blog-card-title {
        font-size: 15px;
    }
}
