/* Entheogen Labs - Synthwave Design System */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto+Mono:wght@300;400&display=swap');

:root {
    --bg-color: #0b021d;
    --grid-color: rgba(0, 255, 255, 0.4);
    /* Cyan grid */
    --primary-neon: #ff00ea;
    --secondary-neon: #00fff2;
    --text-color: #e0e0ff;
    --glass-bg: rgba(14, 6, 36, 0.8);
    --scanline-color: rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0f0525;
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   SYNTHWAVE BACKGROUND - Fixed Layout
   ======================================== */

/* Container for all background elements */
/* ========================================
   SYNTHWAVE BACKGROUND
   ======================================== */

#synthwave-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Scale to cover viewport while maintaining aspect ratio */
    width: max(100vw, 177.78vh);  /* 1920/1080 = 1.778 */
    height: max(100vh, 56.25vw);  /* 1080/1920 = 0.5625 */
    z-index: -1;
}

/* CRT Overlay - disabled */
.crt-overlay {
    display: none;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    border-bottom: 2px solid var(--primary-neon);
    box-shadow: 0 0 20px var(--primary-neon);
    backdrop-filter: blur(10px);
    background: rgba(11, 2, 29, 0.6);
    z-index: 10;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary-neon);
    text-shadow:
        0 0 5px var(--secondary-neon),
        0 0 10px var(--secondary-neon);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
}

.nav-links a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 8px var(--primary-neon);
    border: 1px solid var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon) inset;
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

/* Glassmorphism modal wrapper for hero content */
.hero-content {
    background: rgba(10, 5, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--primary-neon);
    border-radius: 16px;
    padding: 3rem 4rem;
    box-shadow:
        0 0 20px var(--primary-neon),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 60px rgba(255, 0, 234, 0.05);
    max-width: 700px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff 40%, #ff00ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-neon));
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.hero p {
    font-size: 1.4rem;
    max-width: 600px;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    color: var(--text-color);
}

.cta-button {
    background: transparent;
    color: var(--secondary-neon);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    padding: 1rem 3rem;
    border: 3px solid var(--secondary-neon);
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 15px var(--secondary-neon);
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--secondary-neon);
    color: #0b021d;
    box-shadow:
        0 0 30px var(--secondary-neon),
        0 0 60px var(--secondary-neon);
}

/* Section styling for content */
section {
    padding: 4rem;
    z-index: 1;
}


/* --- Products Grid --- */
.products-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.product-card {
    background: rgba(11, 2, 29, 0.6);
    border: 2px solid var(--grid-color);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 30px rgba(255, 0, 234, 0.3);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 150px;
    background-color: #333;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) inset;
}

.product-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.product-card .desc {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-card .price {
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary-neon);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 5px var(--secondary-neon);
}

.buy-btn {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.buy-btn:hover {
    background: var(--primary-neon);
    color: #0b021d;
    box-shadow: 0 0 20px var(--primary-neon);
}

.buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
}

.buy-btn:disabled:hover {
    background: transparent;
    box-shadow: none;
}

/* Sold out products */
.product-card.sold-out {
    opacity: 0.6;
}

.product-card.sold-out .product-image {
    filter: grayscale(50%);
}

/* Featured product */
.product-card.featured {
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.product-card.featured:hover {
    border-color: #22c55e;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

/* --- Manifesto Section --- */
.manifesto-section {
    max-width: 800px;
    margin: 4rem auto;
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    padding: 4rem;
    border: 1px solid var(--grid-color);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.manifesto-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #d1d1e0;
}

.glitch-text {
    color: var(--primary-neon);
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 0 red, -2px 0 blue;
    animation: glitch 1s infinite alternate;
}

.crypto-sig {
    font-family: 'Roboto Mono', monospace;
    color: var(--secondary-neon);
    opacity: 0.8;
}

@keyframes glitch {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-10deg);
    }

    40% {
        transform: skew(10deg);
    }

    60% {
        transform: skew(-5deg);
    }

    80% {
        transform: skew(5deg);
    }

    100% {
        transform: skew(0deg);
    }
}

/* Active Nav Link */
.nav-links a.active {
    color: var(--primary-neon);
    border-bottom: 2px solid var(--primary-neon);
}

/* ========================================
   SMOOTH SCROLL & ANIMATIONS
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* Hero entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content:hover {
    box-shadow: 0 0 35px var(--primary-neon), 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ========================================
   SACRAMENT DETAIL PAGES
   ======================================== */

/* Page variants */
.page-presence { --accent-color: #a855f7; --accent-glow: rgba(168, 85, 247, 0.3); }
.page-sigil { --accent-color: #f59e0b; --accent-glow: rgba(245, 158, 11, 0.3); }

/* Hero modifiers for detail pages */
.hero--compact {
    min-height: auto;
    padding: 2rem;
}

.hero-content--wide {
    max-width: 900px;
    text-align: left;
}

/* Sacrament header */
.sacrament-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.sacrament-badge {
    color: #22c55e;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.sacrament-description {
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Instructions block */
.instructions {
    background: rgba(168, 85, 247, 0.1);
    border-left: 3px solid var(--accent-color, #a855f7);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.page-sigil .instructions {
    background: rgba(245, 158, 11, 0.1);
}

.instructions h4 {
    color: var(--accent-color, #a855f7);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
}

/* Entheogen container */
.entheogen-container {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--accent-color, #a855f7);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 0 30px var(--accent-glow, rgba(168, 85, 247, 0.3));
    transition: box-shadow 0.3s ease;
}

.entheogen-container:hover {
    box-shadow: 0 0 50px var(--accent-glow, rgba(168, 85, 247, 0.5));
}

.entheogen-code {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #d1d5db;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Sigil-specific code styling */
.page-sigil .entheogen-code {
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--accent-color);
    word-break: break-all;
    text-shadow: 0 0 5px var(--accent-glow);
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color, #a855f7);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.page-sigil .copy-btn {
    color: black;
}

.copy-btn:hover {
    filter: brightness(0.85);
    box-shadow: 0 0 15px var(--accent-glow, rgba(168, 85, 247, 0.5));
}

.copy-btn.copied {
    background: #22c55e;
}

/* Warning and notes */
.warning {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    opacity: 0.9;
}

.page-sigil .warning {
    color: #ef4444;
}

.decode-note {
    color: #666;
    font-size: 0.8rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Return button container */
.return-container {
    margin-top: 2rem;
    text-align: center;
}

.cta-button--small {
    font-size: 1rem;
    padding: 0.8rem 2rem;
}

/* ========================================
   PRODUCT CARD ICONS
   ======================================== */

.product-icon {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.product-icon svg {
    width: 80px;
    height: 80px;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-card:hover .product-icon svg {
    transform: scale(1.1);
    opacity: 1;
}

/* Icon backgrounds */
.product-icon--presence {
    background: linear-gradient(135deg, #a855f7 0%, #3b0764 100%);
}

.product-icon--sigil {
    background: linear-gradient(135deg, #f59e0b 0%, #78350f 100%);
}

.product-icon--ego {
    background: linear-gradient(135deg, #ff00ea 0%, #3a0033 100%);
}

.product-icon--oracle {
    background: linear-gradient(135deg, #00fff2 0%, #003333 100%);
}

.product-icon--chronos {
    background: linear-gradient(135deg, #ffbf00 0%, #442200 100%);
}

.product-icon--hyper {
    background: linear-gradient(135deg, #00ff00 0%, #003300 100%);
}