/* GRID LAYOUT */
.latest-users-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
    padding: 20px;
}

/* CARD */
.latest-user-card {
    position: relative;
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: .3s ease;
    text-decoration: none;
    color: #fff;
    display: block;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

/* Hover zoom image effect */
.latest-user-card:hover img {
    transform: scale(1.08);
}

/* IMAGE */
.latest-user-card img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    transition: .4s ease;
}

/* GRADIENT OVERLAY */
.latest-user-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

/* INFO */
.latest-user-info {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.latest-user-info .name {
    font-size: 22px;
    font-weight: 700;
}

.latest-user-info small {
    font-size: 16px;
    opacity: 0.9;
}

/* ONLINE DOT */
.online-dot {
    width: 16px;
    height: 16px;
    background: #21ff10;
    border-radius: 50%;
    position: absolute;
    right: 14px;
    top: 14px;
    border: 2px solid #fff;
    z-index: 4;
}

/* VERIFIED */
.verified-badge {
    color: #4caf50;
    font-size: 20px;
}

/* USER CARD WRAPPER */
.user-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    text-align: center;
    margin-bottom: 20px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* USER IMAGE */
.user-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* USER INFO */
.user-card .u-info {
    padding: 12px;
    font-size: 14px;
    color: #333;
}

/* LIKE/DISLIKE BUTTONS HIDDEN BY DEFAULT */
.user-actions {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

/* SHOW ON HOVER */
.user-card:hover .user-actions {
    opacity: 1;
    visibility: visible;
}

/* ICON BUTTONS (NORMAL SIZE) */
.user-actions button {
    background: #fff;
    border: none;
    padding: 7px 10px;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.user-actions button i {
    font-size: 18px !important; /* NORMAL SIZE ICON */
    vertical-align: middle;
}


/* RESPONSIVE */
@media (max-width: 1400px) {
    .latest-users-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .latest-users-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .latest-user-card img {
        height: 420px;
    }
}



/* Card Styling */
.bigcard {
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    transition: transform .2s ease;
}

.bigcard:hover {
    transform: translateY(-5px);
}

/* User Image */
.bigcard-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Info */
.bigcard-info {
    padding: 10px;
}

.bigcard-info .name {
    font-size: 16px;
    font-weight: 600;
    display: block;
    color: #333;
}

/* Online Dot */
.online-dot {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 3;
}

/* Hover Action Buttons */
.bigcard-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: 0.2s ease-in-out;
}

.bigcard:hover .bigcard-actions {
    opacity: 1;
}

/* Buttons */
.action-btn {
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.action-btn i {
    font-size: 18px;
    color: #444;
}

.action-btn.like i { color: #e74c3c; }
.action-btn.dislike i { color: #555; }
