/* Devani default listing-card stylesheet (1.55, renamed from
   devani-listings.css). Loaded sitewide because cards appear via
   {{blog_posts}} / {{shop}} / {{product_grid}} / {{pages_list}} which
   can be placed on any page. Loads BEFORE per-site /cards.css and
   /global-styles.css so anything can be overridden.

   Sites can save their own /cards.css to fully replace this default —
   see update_cards_css MCP tool. */

.devani-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
}

.devani-cards--blog {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.devani-card {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.devani-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.devani-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f6f6f7;
}

.devani-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.devani-card__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.devani-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    color: inherit;
}

.devani-card__summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5a5a63;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.devani-card__meta {
    font-size: 13px;
    color: #8a8a90;
    margin-top: 2px;
}

.devani-cards-empty {
    padding: 48px 24px;
    text-align: center;
    color: #8a8a90;
    font-size: 15px;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

@media (max-width: 640px) {
    .devani-cards,
    .devani-cards--blog {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

