/* =====================================================
   BASE MEDIA CARD
   ===================================================== */

.media-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* =====================================================
   MEDIA IMAGE WRAPPER
   ===================================================== */

.media-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.media-image-wrapper:not([class*="bg-"]) {
    background-color: #f1f3f5;
}

.media-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.media-card:hover img {
    transform: scale(1.05);
}

/* =====================================================
   CATEGORY CAROUSEL
   ===================================================== */

.category-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.category-carousel::-webkit-scrollbar {
    height: 6px;
}

.category-carousel::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.15);
    border-radius: 10px;
}

.category-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    text-align: center;
}

.category-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f3f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-title {
    margin-top: 8px;
    font-size: .85rem;
    font-weight: 600;
}

/* =====================================================
   PROFILE MEDIA CARD
   ===================================================== */

.media-card-profile {
    position: relative;
    border-top: 3px solid currentColor;
}

.media-card-profile .media-image-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   SOFT BACKGROUNDS (PROFILE HEADER)
   ===================================================== */

.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.12);
}

.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.12);
}

.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.12);
}

/* =====================================================
   REACTION OVERLAY ICON (TOP-LEFT – FINAL)
   ===================================================== */

.media-card-profile .reaction-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 5;
}

/* Icône toujours lisible */
.media-card-profile .reaction-badge i {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
}

/* =====================================================
   REACTION TYPES (BOOTSTRAP SAFE COLORS)
   ===================================================== */

.media-card-profile .reaction-like {
    background-color: #dc3545; /* danger */
}

.media-card-profile .reaction-kiss {
    background-color: #ffc107; /* warning */
}

.media-card-profile .reaction-love {
    background-color: #0d6efd; /* primary */
}

/* =====================================================
   OPTIONAL HOVER POLISH
   ===================================================== */

.media-card-profile:hover .reaction-badge {
    transform: scale(1.05);
    transition: transform .15s ease;
}