/* Container untuk Grid Kartu */
.stat-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* Base Style Kartu */
.stat-card-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card-item:hover {
    transform: translateY(-5px);
}

.stat-card-item .material-icons-outlined {
    font-size: 40px;
}

.stat-card-item h4 {
    margin: 10px 0 5px;
    color: #333;
    font-size: 16px;
}

.stat-card-item .stat-value {
    font-weight: bold;
    font-size: 18px;
}

/* Border dinamis berdasarkan status */
.card-active { border-bottom: 5px solid #28a745; }
.card-inactive { border-bottom: 5px solid #dc3545; }
.card-rating { border-bottom: 5px solid #ffca28; }
.card-expiry { border-bottom: 5px solid #1e73be; }

/* BATAS KODE */

.glidik-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card-locked {
    cursor: not-allowed;
    opacity: 0.8;
}

.card-locked img {
    filter: grayscale(0.8);
}

.card-image {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    background: #eee;
}

.card-image img:not(.card-placeholder img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.card-placeholder img {
    width: auto;
    height: auto;
    max-width: 90px;
    opacity: 0.2;
    object-fit: contain;
}

.locked-overlay {
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,0.3); 
    z-index: 2; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.card-verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: #28a745;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-promo-badge {
    position: absolute; 
    top: 0; 
    left: 0; 
    color: white; 
    padding: 5px 10px; 
    font-size: small; 
    font-weight: bold; 
    border-radius: 0 0 8px 0; 
    z-index: 5; 
    line-height: 1;
}

.card-fs-text-badge {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    background: linear-gradient(45deg, #cc0000 0%, #FF0000 100%);
    color: white; 
    padding: 5px 20px 5px 10px;
    font-size: x-small; 
    font-weight: bold; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    z-index: 6; 
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
}

.card-promo-badge.badge-promo-biasa {
    background-color: #ff9800; /* Orange */
}

.card-promo-badge.badge-flash-sale {
    background-color: #FF0000; /* Merah */
}

.card-info { 
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px; 
    line-height: 1;
    min-height: 105px;
}

.card-type-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    font-size: small;
    color: #999;
    text-transform: capitalize;
}

.card-type-label .loc-wrapper,
.card-type-label .card-distance-badge {
    display: flex;
    align-items: end;
    gap: 5px;
}

.card-type-label .card-distance-badge {
    color: red;
}

.card-type-label .material-icons-outlined {
    font-size: small;
    vertical-align: middle;
}

.card-info h3 {
    font-size: small;
    line-height: 1.3;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info h3 a {
    display: block;
    color: inherit;
}

.card-info p {
    font-size: x-small;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-status {
    display: flex; 
    align-items: center;
}

.card-footer-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #555;
    font-size: 13px;
}

.star-icon { color: #ffca28; font-size: 18px; }

/* BADGE MITRA STYLING */
.card-badge-tipe {
    display: inline-block;
    font-size: x-small;
    font-weight: bold;
    text-transform: uppercase;
}

/* Warna Jasa (Oranye) */
.badge-jasa {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* Warna Usaha (Ungu/Deep Purple) */
.badge-usaha {
    background-color: #f3e5f5;
    color: #6a1b9a;
}
