/* static/css/components/vault-carousel.css */

.vault-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }

/* Wrapper and Carousel Controls */
.vault-item-wrapper { width: 144px; height: 207px; position: relative; border-radius: 8px; }

/* Center the transform origin so scaling and shadow changes do not pull the grid left */
.vault-item-wrapper .omni-card {
    transform-origin: center center !important; 
    transform: scale(0.45) !important;
    position: absolute;
    top: 50%;
    left: 50%;
    /* Pulls the card back to true center based on its native CSS variables */
    margin-top: calc(var(--card-h) * -0.5); 
    margin-left: calc(var(--card-w) * -0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vault-item-wrapper:hover { z-index: 20; }

.vault-counter {
    position: absolute; top: -10px; right: -10px; z-index: 30;
    background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(56, 189, 248, 0.6);
    color: #e0f2fe; font-size: 11px; 
    padding: 3px 8px; border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8); pointer-events: none;
}

/* --- THE VAULT ARROWS --- */
.mini-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); 
    z-index: 100 !important; /* Boosted to ensure it pierces the card's canvas */
    background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8; width: 24px; height: 24px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; 
    
    /* Prevent rapid clicking from highlighting invisible text/layout blocks */
    user-select: none;
    -webkit-user-select: none;
    
    /* Persistent, visible baseline opacity */
    opacity: 0.85; 
    transition: all 0.2s ease;
    font-size: 10px; padding: 0;
}

/* Enhance the direct hover state to provide tactile feedback */
.mini-arrow:hover { 
    background: #38bdf8; 
    color: #000; 
    opacity: 1;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Pull them inward so they overlay the card */
.mini-arrow.left { left: -2px; }
.mini-arrow.right { right: -2px; }