/* SOLIDABLE Pages CSS - Page-Specific Styles */

/* Domain Slogan with Ghost Effect */
.domain-slogan {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    font-family: 'Share Tech Mono', monospace;
    text-align: right;
    animation: ghostFade 15s infinite;
}

.slogan-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-shadow: 0 0 10px currentColor;
    filter: blur(0px);
    transition: all 0.3s ease;
}

.domain-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.slogan-message {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-style: italic;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Ghost fade animation - 15 second cycle */
@keyframes ghostFade {
    0% { 
        opacity: 0; 
        transform: translateY(10px) scale(0.95);
        filter: blur(2px);
    }
    5% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    25% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    30% { 
        opacity: 0; 
        transform: translateY(-10px) scale(0.95);
        filter: blur(2px);
    }
    100% { 
        opacity: 0; 
        transform: translateY(-10px) scale(0.95);
        filter: blur(2px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .domain-slogan {
        top: 1rem;
        right: 1rem;
    }
    
    .domain-name {
        font-size: 1rem;
    }
    
    .slogan-message {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .domain-slogan {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .slogan-text {
        gap: 0.125rem;
    }
}

/* Homepage/Ritual Interface Specific Styles */
.homepage {
    /* Homepage-specific overrides will go here */
}

/* Future page styles will be added here as pages are created */
.artifacts-page {
    /* Gallery-specific styles for Story 1.2 */
}

.vault-page {
    /* Vault-specific styles for Story 1.3 */
}

.rituals-page {
    /* Rituals showcase styles for Story 1.4 */
}

.discovery-page {
    /* Interactive discovery styles for Story 1.5 */
}

/* Page transition effects */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.page-transition.active {
    opacity: 1;
    transform: translateY(0);
}

/* Experiments (Story 1.2) */
.experiments-page {
    min-height: 100vh;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experiments-page__title {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.experiments-page__intro {
    text-align: center;
    color: var(--color-accent);
    opacity: 0.9;
    font-size: 0.95rem;
}

/* lightweight header nav */
.site-header { position: sticky; top: 0; z-index: 5; }
.site-nav {
    display: flex; gap: 0.5rem; align-items: center; justify-content: center;
    padding: 0.75rem 1rem; opacity: 0.9;
}
.site-nav__link { color: var(--color-primary); text-decoration: none; border-bottom: 1px dashed transparent; }
.site-nav__link:hover, .site-nav__link:focus-visible { border-bottom-color: var(--color-accent); color: var(--color-accent); }
.site-nav__sep { color: color-mix(in oklab, var(--color-primary) 60%, transparent); }
.site-nav__current { color: var(--color-secondary); }

/* Gallery Grid */
.gallery-section { width: min(1200px, 100%); margin: 0 auto; }
.gallery {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: 1fr; gap: 1rem;
}

@media (min-width: 600px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .gallery { grid-template-columns: repeat(4, 1fr); }
}

.gallery__item { position: relative; }
.gallery__link { display: block; text-decoration: none; color: inherit; }

.gallery__figure {
    display: flex; flex-direction: column; gap: 0.6rem;
    border: 1px solid color-mix(in oklab, var(--color-primary) 35%, transparent);
    background: rgba(13, 13, 13, 0.6);
    padding: 0.75rem; border-radius: 8px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery__figure:hover,
.gallery__link:focus-visible .gallery__figure {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 0 18px color-mix(in oklab, var(--color-accent) 30%, transparent);
}

.gallery__media {
    aspect-ratio: 16 / 10; width: 100%; border-radius: 6px;
    background: radial-gradient(120% 100% at 20% 80%, color-mix(in oklab, var(--color-primary) 18%, transparent) 0%, transparent 55%),
                radial-gradient(100% 100% at 80% 20%, color-mix(in oklab, var(--color-secondary) 18%, transparent) 0%, transparent 55%),
                linear-gradient(135deg, rgba(0, 255, 174, 0.08), rgba(0, 255, 255, 0.06));
    position: relative; overflow: hidden; isolation: isolate;
}

/* subtle glitch layers */
.gallery__media::before, .gallery__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
}
.gallery__media::before {
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay; opacity: 0.2;
}
.gallery__media::after {
    background: linear-gradient(90deg, transparent 0 49%, color-mix(in oklab, var(--color-accent) 20%, transparent) 50%, transparent 51% 100%);
    opacity: 0; transition: opacity 0.15s ease;
}
.gallery__figure:hover .gallery__media::after { opacity: 0.25; }

/* Themed variants */
.gallery__media--neon { filter: saturate(1.1) contrast(1.05); }
.gallery__media--dephase { background-blend-mode: screen; }
.gallery__media--bloom { box-shadow: inset 0 0 50px rgba(0,0,0,0.35); }
.gallery__media--terminal { background: radial-gradient(120% 100% at 50% 50%, rgba(0,255,174,0.15) 0%, transparent 60%), linear-gradient(135deg, rgba(0,255,255,0.08), rgba(255,0,128,0.05)); }

.gallery__meta {
    display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap;
}
.gallery__title { font-size: 1rem; color: var(--color-primary); }
.gallery__tags { display: inline-flex; gap: 0.4rem; }
.tag { font-size: 0.75rem; color: var(--color-bg); background: var(--color-primary); border-radius: 999px; padding: 0.12rem 0.5rem; }
.tag + .tag { background: var(--color-secondary); color: #fff; }

/* Mobile tweaks */
@media (max-width: 480px) {
    .experiments-page__title { font-size: 1.25rem; }
    .gallery__title { font-size: 0.95rem; }
}

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