/* css/rankings_list.css - Universal Compact Card Layout */

/* --- LIJST CONTAINER --- */
.card-list {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
} 

/* --- KAART CONTAINER: COMPACT & GRID --- */
.tcg-card {
    background-color: #fff;
    border: 1px solid #d0e8ff; /* Soft Blue Border */
    border-radius: 8px;     
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
    height: auto;
    min-height: 110px;
    display: grid;
    grid-template-columns: 50px 70px 1fr 140px; 
    align-items: stretch; 
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer; 
}

.tcg-card:hover { 
    background-color: #fff; 
    border-color: #38b6ff; /* Active Brand Blue on Hover */    
    box-shadow: 0 4px 8px rgba(56, 182, 255, 0.15); /* Soft Blue Shadow */
    transform: translateY(-1px); 
    transition: all 0.2s ease;
}

/* 1. RANK KOLOM */
.col-rank {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    min-height: 110px; 
    height: 100%;
    border-right: 1px solid #f0f7ff; /* Very soft blue separator */
    background-color: #fff;
}
.rank-val { font-size: 1.4rem; font-weight: 900; color: #212529; line-height: 1; }
.rank-indicator { margin-top: 4px; font-size: 0.8rem; display: flex; justify-content: center; gap: 3px; }
.rank-indicator.up { color: #0ca678; } .rank-indicator.down { color: #dc2626; } .rank-indicator.neutral { color: #868e96; }
.rank-icon { width: 16px; height: 16px; stroke-width: 3; }
.trend-diff { color: #999; font-weight: 700; font-size: 0.8rem; }

/* 2. IMAGE CONTAINER */
.col-image {
    grid-column: 2;
    display: flex;
    align-items: center; 
    justify-content: center; 
    height: 100%;
    padding: 8px;
}
.card-visual {
    width: 100%;  
    height: auto; 
    max-height: 90px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image-full { 
    height: auto; 
    max-height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain; 
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 3. INFO CONTAINER */
.col-info {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 10px 10px 5px; 
    height: 100%;
    min-width: 0; 
    gap: 2px;
    position: relative;
}

.card-title-large { 
    font-size: 1.1rem; font-weight: 800; color: #222; line-height: 1.2; width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.card-number-badge {
    font-size: 0.85rem; color: #999; font-weight: 500; margin-left: 6px;
}
.card-set-info {
    font-size: 0.85rem; color: #555; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; 
}
.set-name { font-weight: 600; color: #333; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-game-tag { 
    font-size: 0.7rem; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px;
}
.card-history-bar {
    display: flex; 
    flex-direction: row; 
    flex-wrap: nowrap;
    gap: 12px; 
    font-size: 0.75rem; 
    color: #888; 
    margin-top: 6px; 
    padding-top: 6px; 
    border-top: 1px solid #f9f9f9; 
    width: 100%;
    white-space: nowrap;
}
.mh-item span { font-weight: 700; color: #555; margin-right: 3px; }

/* 4. MARKET CONTAINER */
.col-market {
    grid-column: 4;
    display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start;
    padding: 12px 15px 10px 0; border-left: 1px solid #f9f9f9;
}
.big-price { font-size: 1.2rem; font-weight: 900; color: #111; line-height: 1; text-align: right; }
.price-change { 
    font-size: 0.8rem; font-weight: 700; margin-top: 4px; padding: 0; border-radius: 0; text-align: right; white-space: nowrap; background-color: transparent !important; display: none; 
}
.change-plus { color: #0ca678; } .change-min { color: #ef4444; }

/* MOBIEL */
@media (max-width: 600px) {
    .tcg-card { grid-template-columns: 40px 65px 1fr; }
    .col-rank { flex: 0 0 40px; } .rank-val { font-size: 1.3rem; }
    .col-image { padding: 8px 5px; }
    .col-info { grid-column: 3; padding-right: 90px; }
    .card-title-large { width: 100%; font-size: 1rem; }
    .col-market { position: absolute; top: 10px; right: 10px; width: auto; padding: 0; border: none; background: transparent; display: block; text-align: right; }
    .big-price { font-size: 1.1rem; margin-bottom: 2px; }
    .price-change { font-size: 0.75rem; } 
    
    .card-history-bar {
        gap: 8px; 
        overflow-x: auto;
        scrollbar-width: none;
    }
    .card-history-bar::-webkit-scrollbar { 
        display: none;
    }
}
