/* ========================================
   DECORATIVE.CSS - Pixel Art, Floating Elements, Retro Effects
======================================== */

/* --- FLOATING DECORATIONS --- */
.floating-decor {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    pointer-events: none;
}

.floating-decor-img {
    width: 150px;
    opacity: 0.9;
}

.floating-decor.clickable {
    pointer-events: auto;
    cursor: pointer;
}

/* --- PIXEL ART FRAMES --- */
.art-frame {
    border: 3px solid var(--wired-cyan);
    box-shadow:
        0 0 20px var(--wired-cyan),
        inset 0 0 10px rgba(0, 255, 255, 0.2);
    padding: 4px;
    background: var(--bg);
    display: inline-block;
}

.art-frame.borderless {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.art-frame.pink {
    border-color: var(--wired-pink);
    box-shadow:
        0 0 20px var(--wired-pink),
        inset 0 0 10px rgba(255, 0, 255, 0.2);
}

.art-frame img {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
    max-width: 200px;
    height: auto;
}

.art-frame.large img {
    max-width: 300px;
}

.art-frame.small img {
    max-width: 100px;
}

/* --- FEATURED ART DISPLAY --- */
.featured-art {
    position: relative;
    padding: 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--wired-pink);
    box-shadow:
        0 0 30px rgba(255, 0, 255, 0.4),
        inset 0 0 20px rgba(255, 0, 255, 0.1);
}

.featured-art::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--wired-cyan);
    pointer-events: none;
}

.featured-art img {
    display: block;
    max-width: 100%;
    height: auto;
}

.featured-art .caption {
    margin-top: 8px;
    font-family: var(--f-pixel);
    font-size: 0.6rem;
    color: var(--wired-cyan);
    text-align: center;
    text-transform: uppercase;
}

/* --- GIF CONTAINER --- */
.gif-display {
    border: 2px solid var(--wired-green);
    padding: 2px;
    background: var(--bg);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.gif-display img {
    display: block;
    max-width: 100%;
}

/* --- SCATTERED LAYOUT ENHANCEMENTS --- */
.layout-grid {
    position: relative;
}

/* Hide floating decorations on mobile */
@media (max-width: 768px) {
    .floating-decor {
        display: none;
    }
}

/* Reduce animation on mobile for performance */
@media (max-width: 1024px) {
    .floating-decor {
        animation: none;
    }
}

/* --- SIDEBAR & WIDGET ART CONTAINERS --- */
.sidebar-art {
    margin-top: -20px;
}

.sidebar-art-img {
    width: 150px;
}

.widget-art {
    margin-top: var(--space-xl);
    text-align: left;
}

.widget-art-img {
    width: 220px;
}

/* --- PLAYER BODY (overflow + padding for music widget) --- */
.player-body {
    overflow: hidden;
    padding: 10px;
}

/* --- LINK ACCENT (replaces inline color:var(--wired-cyan)) --- */
.link-accent {
    color: var(--wired-cyan);
}

/* --- SECTION DIVIDER --- */
.section-divider {
    border-color: var(--wired-cyan-dim);
    margin: 20px 0;
}

/* --- WORK LIST (replaces inline styles on huggingface) --- */
.work-list {
    list-style: square;
    padding-left: 20px;
    color: var(--fg-muted);
}

.work-list li {
    margin-bottom: 10px;
}

/* --- VIDEO FALLBACK --- */
.video-fallback {
    flex-basis: 100%;
    text-align: right;
    font-size: 0.8rem;
    margin-top: 5px;
}

.video-fallback-link {
    color: var(--border-faint);
}