/**
 * SayLife Assurance Pro — Products Showcase (public)
 * Shortcode [assurance_produits]
 */

/* ============================================
   Variables (standalone — no admin CSS dependency)
   ============================================ */
.slap-showcase {
    --sc-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sc-primary: #1a2744;
    --sc-primary-light: #3d6098;
    --sc-primary-bg: #f0f4f9;
    --sc-primary-border: #c4d4e8;
    --sc-success: #0d9668;
    --sc-success-bg: #eefbf5;
    --sc-warning: #d4880c;
    --sc-warning-bg: #fef9ee;
    --sc-neutral-50: #fafaf9;
    --sc-neutral-100: #f3f2f0;
    --sc-neutral-200: #e5e3df;
    --sc-neutral-300: #ccc9c3;
    --sc-neutral-400: #9c9890;
    --sc-neutral-500: #6e6a62;
    --sc-neutral-600: #4d4942;
    --sc-neutral-700: #37342e;
    --sc-neutral-900: #141210;
    --sc-radius: 14px;
    --sc-radius-sm: 6px;
    --sc-shadow-sm: 0 1px 3px rgba(20, 18, 16, 0.05), 0 1px 2px rgba(20, 18, 16, 0.03);
    --sc-shadow-md: 0 4px 8px -2px rgba(20, 18, 16, 0.06), 0 2px 4px -2px rgba(20, 18, 16, 0.04);
    --sc-shadow-lg: 0 12px 20px -4px rgba(20, 18, 16, 0.08), 0 4px 8px -4px rgba(20, 18, 16, 0.03);
    --sc-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --sc-transition-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);

    font-family: var(--sc-font);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.slap-showcase *, .slap-showcase *::before, .slap-showcase *::after {
    box-sizing: border-box;
}

/* ============================================
   Grid
   ============================================ */
.slap-showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ============================================
   Card
   ============================================ */
.slap-showcase__card {
    background: var(--sc-neutral-50);
    border: 1px solid var(--sc-neutral-200);
    border-radius: var(--sc-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--sc-transition), box-shadow var(--sc-transition), border-color var(--sc-transition);
    box-shadow: var(--sc-shadow-sm);
}

.slap-showcase__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sc-shadow-lg);
    border-color: var(--sc-neutral-300);
}

.slap-showcase__card:active {
    transform: translateY(-1px) scale(0.99);
}

/* ============================================
   Card — Image
   ============================================ */
.slap-showcase__card-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--sc-neutral-100) 0%, var(--sc-neutral-200) 100%);
    overflow: hidden;
}

.slap-showcase__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--sc-transition-slow);
}

.slap-showcase__card:hover .slap-showcase__card-image img {
    transform: scale(1.05);
}

.slap-showcase__card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--sc-neutral-300);
}

.slap-showcase__card-placeholder svg {
    width: 48px;
    height: 48px;
}

/* ============================================
   Card — Badge
   ============================================ */
.slap-showcase__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: var(--sc-radius-sm);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.slap-showcase__badge--pro {
    background: rgba(26, 39, 68, 0.85);
    color: #fff;
}

.slap-showcase__badge--particulier {
    background: rgba(13, 150, 104, 0.85);
    color: #fff;
}

.slap-showcase__badge--both {
    background: rgba(79, 93, 198, 0.85);
    color: #fff;
}

/* ============================================
   Card — Body
   ============================================ */
.slap-showcase__card-body {
    padding: 20px 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slap-showcase__card-title {
    font-family: var(--sc-font);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--sc-neutral-900);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.slap-showcase__card-desc {
    font-size: 0.875rem;
    color: var(--sc-neutral-500);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

/* ============================================
   Card — Footer
   ============================================ */
.slap-showcase__card-footer {
    display: flex;
    gap: 16px;
    padding: 12px 20px 16px;
    font-size: 0.8125rem;
    color: var(--sc-neutral-400);
    font-variant-numeric: tabular-nums;
}

.slap-showcase__stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.slap-showcase__stat svg {
    opacity: 0.6;
    flex-shrink: 0;
}

/* ============================================
   Empty state
   ============================================ */
.slap-showcase__empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--sc-neutral-400);
}

.slap-showcase__empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--sc-neutral-300);
}

.slap-showcase__empty-text {
    font-family: var(--sc-font);
    font-size: 1rem;
    margin: 0;
    color: var(--sc-neutral-500);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .slap-showcase__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .slap-showcase__card-image {
        height: 160px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .slap-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
