:root {
    --card-width: 140px;
    --card-height: 200px;
}

.tilt-card-container {
    width: var(--card-width);
    height: var(--card-height);
    perspective: 600px;
    margin: 10px;
    position: relative;
    display: inline-block;
}

.tilt-card {
    width: 100%;
    height: 100%;
    background-color: #111;
    border: 1px solid rgba(0, 255, 0, 0.5);
    border-radius: 10px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Selected State */
.tilt-card-container.selected .tilt-card {
    border-color: #ffd700 !important;
    box-shadow: 0 0 15px #ffd700 !important;
}

/* --- Layers --- */

/* Shine / Holographic Layer */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    mix-blend-mode: color-dodge;
    pointer-events: none;
    z-index: 3;
    opacity: 0.6;
    
    /* Holographic Gradient */
    background: 
        linear-gradient(
            115deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.1) 25%, 
            rgba(0, 255, 255, 0.4) 45%, 
            rgba(255, 0, 255, 0.4) 55%, 
            rgba(255, 255, 255, 0.1) 75%, 
            transparent 100%
        );
    background-position: var(--shine-x, 50%) var(--shine-y, 50%);
    background-size: 300% 300%;
    filter: brightness(0.8) contrast(1.5);
}

/* Glare / Specular Highlight */
.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s;
    
    /* Radial Glare */
    background: radial-gradient(
        farthest-corner at var(--pointer-x) var(--pointer-y),
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.2) 40%,
        transparent 80%
    );
}

.tilt-card:hover .card-glare {
    opacity: 1;
}

.tilt-card-content {
    position: relative;
    z-index: 5; /* Above shine */
    padding: 10px;
    transform: translateZ(20px); /* Pop text out */
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.card-header {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
}

.card-subtitle {
    font-size: 10px;
    color: #ccc;
    margin-bottom: 10px;
    font-family: monospace;
}

.card-body {
    font-size: 11px;
    line-height: 1.3;
    color: #ddd;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
