/* Holographic Stickers Test Page */

.holo-page {
    padding: 6rem 0;
    min-height: 100vh;
    background: var(--bg-primary);
}

.holo-header {
    text-align: center;
    margin-bottom: 4rem;
}

.holo-header .display-large {
    margin-bottom: 1rem;
}

.holo-subtitle {
    color: var(--text-gray);
    font-size: 1.125rem;
}

.stickers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    justify-items: center;
    perspective: 1000px;
}

/* Sticker Container - handles 3D transforms */
/* Width/height set by JS based on SVG dimensions */
.sticker-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Canvas renders the holographic background */
/* Clip-path set by JS using actual SVG mask paths */
.sticker-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* SVG sits on top with transparent background */
.sticker-svg {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

/* Fallback: Hide holo backgrounds if JS cleanup fails */
/* JS removes these elements, but keep CSS as safety net */
.sticker-svg g[mask],
.sticker-svg rect[fill^="url(#pattern"],
.sticker-svg mask {
    display: none !important;
}

/* Clip paths are now set by JS using actual SVG mask paths */

/* Hover glow removed - was causing unclipped artifacts outside sticker bounds */

/* Responsive */
@media (max-width: 768px) {
    .stickers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Scale stickers down on smaller screens */
    .sticker-container {
        transform-origin: center center;
        scale: 0.8;
    }
}

@media (max-width: 480px) {
    .stickers-grid {
        grid-template-columns: 1fr;
    }

    .sticker-container {
        scale: 1;
    }
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .sticker-container {
        transition: none;
    }

    .sticker-canvas {
        animation: none;
    }
}

/* Nav Logo - Holographic version */
.nav-logo-holo {
    display: flex;
    align-items: center;
    width: 120px;
    height: 50px;
    position: relative;
}

.nav-logo-sticker-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scale(0.38);
    transform-origin: left center;
}

/* Override the responsive scale for nav logo */
@media (max-width: 768px) {
    .nav-logo-holo {
        width: 100px;
        height: 42px;
    }
    .nav-logo-sticker-wrapper {
        transform: translateY(-50%) scale(0.32);
    }
}

@media (max-width: 480px) {
    .nav-logo-holo {
        width: 88px;
        height: 36px;
    }
    .nav-logo-sticker-wrapper {
        transform: translateY(-50%) scale(0.28);
    }
}

/* WebGL Fallback Logo */
.nav-logo-fallback {
    display: none;
    height: 24px;
    width: auto;
}

@media (max-width: 768px) {
    .nav-logo-fallback {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .nav-logo-fallback {
        height: 16px;
    }
}

/* Show fallback when WebGL fails */
.webgl-failed .nav-logo-sticker-wrapper {
    display: none;
}

.webgl-failed .nav-logo-fallback {
    display: block;
}

/* ============================================
   Sticker Showcase Sections
   Editorial interlude sections featuring stickers
   ============================================ */

.sticker-showcase {
    padding: 5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    perspective: 1000px;
}

.sticker-showcase .sticker-container {
    transform-origin: center center;
}

/* Single sticker centered */
.sticker-showcase.sticker-showcase-single {
    padding: 6rem 0;
}

/* Multiple stickers in a row */
.sticker-showcase.sticker-showcase-row {
    flex-wrap: wrap;
    gap: 3rem;
    padding: 4rem 2rem;
}

/* Sticker with accompanying text */
.sticker-showcase.sticker-showcase-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 0;
    align-items: center;
}

.sticker-showcase-content {
    max-width: 480px;
}

.sticker-showcase-content .section-label {
    margin-bottom: 1rem;
}

.sticker-showcase-content h2 {
    margin-bottom: 1.5rem;
}

.sticker-showcase-content p {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Responsive: Stack on mobile */
@media (max-width: 992px) {
    .sticker-showcase {
        padding: 4rem 1rem;
        gap: 2rem;
    }

    .sticker-showcase.sticker-showcase-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sticker-showcase-content {
        max-width: 100%;
        order: 2;
    }

    .sticker-showcase .sticker-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    .sticker-showcase {
        padding: 3rem 1rem;
    }

    .sticker-showcase.sticker-showcase-row {
        flex-direction: column;
        gap: 2rem;
    }

    /* Scale down stickers on mobile */
    .sticker-showcase .sticker-container {
        transform: scale(0.85);
    }
}
