/* =========================================================================
   MLMC Social Proof — Card Styles
   ========================================================================= */

.mlmc-sp-section { margin: 32px auto; max-width: 1200px; padding: 0 20px; overflow: hidden; box-sizing: border-box; }
@media (max-width: 768px) {
    .mlmc-sp-section { padding: 0; margin: 24px 0; max-width: 100%; }
}
.mlmc-sp-heading { font-size: var(--mlmc-sp-heading-size, 22px); font-weight: 700; margin: 0 0 16px; color: var(--dm-text, #1e293b); text-align: var(--mlmc-sp-heading-align, center); }

/* Grid */
.mlmc-sp-grid { display: grid; gap: 16px; max-width: 100%; }
.mlmc-sp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mlmc-sp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mlmc-sp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 768px) {
    .mlmc-sp-cols-3, .mlmc-sp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .mlmc-sp-cols-2, .mlmc-sp-cols-3, .mlmc-sp-cols-4 { grid-template-columns: 1fr; }
}

/* Shared card */
.mlmc-sp-card { display: block; text-decoration: none; color: inherit; border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.mlmc-sp-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); text-decoration: none; color: inherit; }

/* No-logo fallback */
.mlmc-sp-no-logo { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #6366f1, #818cf8); color: #fff; font-weight: 700; font-size: 18px; border-radius: 10px; }

/* ── MINI CARD ── */
.mlmc-sp-mini { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--dm-surface, #fff); border: 1px solid var(--dm-border, #e2e8f0); overflow: hidden; min-width: 0; }
.mlmc-sp-mini-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mlmc-sp-mini-info { flex: 1; min-width: 0; }
.mlmc-sp-mini-name { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dm-text, #1e293b); }
.mlmc-sp-mini-tagline { display: block; font-size: 12px; color: var(--dm-muted, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.mlmc-sp-mini-cat { flex-shrink: 0; font-size: 11px; background: var(--dm-elevated, #f1f5f9); color: var(--dm-muted, #64748b); padding: 3px 8px; border-radius: 20px; white-space: nowrap; }

/* ── COMPACT CARD ── */
.mlmc-sp-compact { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; background: var(--dm-surface, #fff); border: 1px solid var(--dm-border, #e2e8f0); }
.mlmc-sp-compact-logo { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; margin-bottom: 10px; }
.mlmc-sp-compact-name { font-weight: 600; font-size: 15px; color: var(--dm-text, #1e293b); margin-bottom: 4px; }
.mlmc-sp-compact-cat { font-size: 11px; background: var(--dm-elevated, #eef2ff); color: var(--dm-accent, #6366f1); padding: 2px 8px; border-radius: 20px; margin-bottom: 6px; }
.mlmc-sp-compact-tagline { font-size: 12px; color: var(--dm-muted, #64748b); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── FEATURED CARD ── */
.mlmc-sp-featured { position: relative; min-height: 180px; background-size: cover; background-position: center; overflow: hidden; }
.mlmc-sp-featured-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; }
.mlmc-sp-featured-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; margin-bottom: 8px; border: 2px solid rgba(255,255,255,0.2); }
.mlmc-sp-featured-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.mlmc-sp-featured-tagline { font-size: 13px; opacity: 0.85; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mlmc-sp-featured-btn { display: inline-block; font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 6px; backdrop-filter: blur(4px); transition: background 0.2s; }
.mlmc-sp-featured:hover .mlmc-sp-featured-btn { background: rgba(255,255,255,0.25); }

/* ── POPULAR CATEGORIES ── */

/* Pills */
.mlmc-sp-cat-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mlmc-sp-cat-pills .mlmc-sp-cat-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--dm-surface, #fff); border: 1px solid var(--dm-border, #e2e8f0); border-radius: 24px; font-size: 14px; font-weight: 500; color: var(--dm-text, #334155); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.mlmc-sp-cat-icon { display: inline-flex; align-items: center; font-size: 16px; }
.mlmc-sp-cat-icon i { font-size: 16px; }
.mlmc-sp-cat-pills .mlmc-sp-cat-item:hover { border-color: var(--dm-accent, #6366f1); background: var(--dm-elevated, #f8fafc); text-decoration: none; color: var(--dm-text, #334155); }
.mlmc-sp-cat-count { font-size: 12px; background: var(--dm-elevated, #f1f5f9); color: var(--dm-muted, #64748b); padding: 2px 8px; border-radius: 12px; }

/* Grid */
.mlmc-sp-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mlmc-sp-cat-grid .mlmc-sp-cat-item { display: flex; flex-direction: column; align-items: center; padding: 16px; background: var(--dm-surface, #fff); border: 1px solid var(--dm-border, #e2e8f0); border-radius: 12px; text-decoration: none; color: inherit; transition: transform 0.2s; }
.mlmc-sp-cat-grid .mlmc-sp-cat-item:hover { transform: translateY(-2px); text-decoration: none; color: inherit; }
.mlmc-sp-cat-grid .mlmc-sp-cat-name { font-weight: 600; font-size: 14px; color: var(--dm-text, #1e293b); text-align: center; }
.mlmc-sp-cat-grid .mlmc-sp-cat-count { margin-top: 4px; font-size: 12px; color: var(--dm-muted, #64748b); }
@media (max-width: 768px) { .mlmc-sp-cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* List */
.mlmc-sp-cat-list { display: flex; flex-direction: column; gap: 6px; }
.mlmc-sp-cat-list .mlmc-sp-cat-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--dm-surface, #fff); border: 1px solid var(--dm-border, #e2e8f0); border-radius: 8px; text-decoration: none; color: inherit; }
.mlmc-sp-cat-list .mlmc-sp-cat-item:hover { background: var(--dm-elevated, #f8fafc); text-decoration: none; color: inherit; }
.mlmc-sp-cat-list .mlmc-sp-cat-name { font-weight: 500; font-size: 14px; color: var(--dm-text, #1e293b); }
.mlmc-sp-cat-list .mlmc-sp-cat-count { font-size: 12px; color: var(--dm-muted, #94a3b8); }

/* View All */
.mlmc-sp-view-all { margin-top: 12px; text-align: var(--mlmc-sp-heading-align, center); }
.mlmc-sp-view-all a { font-size: 14px; font-weight: 600; color: var(--dm-accent, #6366f1); text-decoration: none; }
.mlmc-sp-view-all a:hover { text-decoration: underline; }


/* ── LIST LAYOUT ── */
.mlmc-sp-list-layout { display: flex; flex-direction: column; gap: 8px; }

/* ── LIST CARD ── */
.mlmc-sp-list-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--dm-surface, #fff); border: 1px solid var(--dm-border, #e2e8f0); border-radius: 10px; width: 100%; }
.mlmc-sp-list-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mlmc-sp-list-info { flex: 1; min-width: 0; }
.mlmc-sp-list-name { display: block; font-weight: 600; font-size: 15px; color: var(--dm-text, #1e293b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlmc-sp-list-tagline { display: block; font-size: 13px; color: var(--dm-muted, #64748b); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlmc-sp-list-cat { flex-shrink: 0; font-size: 12px; background: var(--dm-elevated, #f1f5f9); color: var(--dm-muted, #64748b); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.mlmc-sp-list-arrow { flex-shrink: 0; font-size: 16px; color: var(--dm-muted, #94a3b8); transition: transform 0.2s; }
.mlmc-sp-list-item:hover .mlmc-sp-list-arrow { transform: translateX(3px); color: var(--dm-accent, #6366f1); }
.mlmc-sp-list-item:hover { border-color: var(--dm-accent, #6366f1); text-decoration: none; color: inherit; }
