
/* Define default rail color variable */
:root {
    --skin-rail-color: #7c3aed; /* Default purple */
}

/* Apply transitions to elements that will change color */
.skin-results-rail {
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* The vertical line itself (pseudo-element usually) */
.skin-results-rail::before {
    background: linear-gradient(to bottom, 
        transparent, 
        var(--skin-rail-color) 20%, 
        var(--skin-rail-color) 80%, 
        transparent
    ) !important;
    transition: background 0.5s ease !important;
}

/* Marker items background/border */
.skin-results-rail__item {
    border-color: rgba(255, 255, 255, 0.2);
    /* Use a subtle version of the color for background */
    background: color-mix(in srgb, var(--skin-rail-color) 15%, rgba(20, 20, 30, 0.6));
    box-shadow: 0 8px 32px color-mix(in srgb, var(--skin-rail-color) 25%, transparent);
    transition: transform 0.2s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}

/* Jump button color */
.skin-results-rail__jump {
    color: var(--skin-rail-color) !important;
    transition: color 0.5s ease !important;
}

.skin-results-rail__jump svg {
    fill: #fff !important;
    transition: fill 0.5s ease !important;
}

/* Pips (dots on the line) */
.skin-results-rail__pip {
    background-color: var(--skin-rail-color) !important;
    transition: background-color 0.5s ease, top 0.1s linear !important;
}

.skin-results-rail__pip--active {
    box-shadow: 0 0 10px var(--skin-rail-color) !important;
    transition: box-shadow 0.5s ease, top 0.1s linear !important;
}

/* Make the marker a flex container to align items */
.skin-results-rail__marker {
    display: flex;
    align-items: center;
    gap: 8px; /* Add some space between the items */
    pointer-events: auto !important; /* Ensure clicks work */
}

/* New item class for equal-sized icons */
.skin-results-rail__item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Background is now handled above with color-mix */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    /* Transition defined above */
    pointer-events: auto; /* Ensure individual items are clickable */
    cursor: pointer;
}

.skin-results-rail__item:hover {
    transform: scale(1.1);
    z-index: 10;
}

.skin-results-rail__item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Fix the jump button to the top */
.skin-results-rail__jump {
    position: absolute;
    top: 120px; /* Position it below the microheader, adjust as needed */
    left: 50%;
    transform: translateX(-50%);
}
