/* ==========================================================================
   STARDUST SAMPLES — PAGE-SPECIFIC STYLES
   Styles for the blinkie carousel and the digital artifact grids.
   ========================================================================== */

/* Blinkie Carousel */
.blinkie-carousel {
    width: 100%;
    overflow: hidden; /* hides scrollbar */
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 12px;
    animation: blinkieScroll 20s linear infinite;
}

.carousel-track img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 4px rgba(0,255,204,0.5));
}

/* Infinite blinkie scrolling animation */
@keyframes blinkieScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-300%); /* adjust this for scroll speed */
    }
}

/* Stops scroll on hover */
.blinkie-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* ==========================================================================
   STARDUST SAMPLES GRID
   ========================================================================== */

.stardust-grid {
    display: grid;
    gap: 20px;
    justify-items: center;

    margin-top: 20px;
    margin-bottom: 40px;

    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.stardust-grid.medium {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.stardust-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.stardust-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    transition: transform 0.3s ease;
}

.stardust-item:hover {
    transform: scale(1.1);
}

.stardust-item img {
    max-width: 100%;
    height: auto;
}

.stardust-item p {
    margin-top: 8px;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.2;
    opacity: 0.8;
}

.stardust-item p a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 204, 0.3);
    transition: color 0.3s ease;
}

.stardust-item p a:hover {
    color: var(--cyan);
    text-decoration-color: var(--cyan);
}

h3.section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cyan);

    text-transform: uppercase;

    margin-top: 30px;
    margin-bottom: 10px;

    border-left: 4px solid var(--magenta);
    padding-left: 10px;
}
