/**
 * Post Card Styles
 * Premium SaaS styling for Best/Top articles grids
 */

.bfai-post-card {
    background: var(--card-bg, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bfai-post-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--brand-primary, #a855f7);
    transform: translateY(-8px);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.post-card-image-box {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bfai-post-card:hover .post-card-img {
    transform: scale(1.08);
}

.post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary, #fff);
    margin: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.bfai-post-card:hover .post-card-title {
    color: var(--brand-primary, #a855f7);
}

/* Light Mode Support */
[data-theme="light"] .bfai-post-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .bfai-post-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--brand-primary, #a855f7);
}

[data-theme="light"] .post-card-title {
    color: #1e293b;
}

[data-theme="light"] .post-card-image-box {
    background: #f8fafc;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .bfai-post-card {
        border-radius: 16px;
    }

    .post-card-content {
        padding: 16px;
    }

    .post-card-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }
}