/* Eden - Interactive Film CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1a2e 100%);
    color: #e0e0e0;
    line-height: 1.6;
}

body.creator-eden {
    --eden-green: #00e676;
    --eden-cyan: #00bcd4;
}

body.eden-playing {
    background:
        radial-gradient(circle at top, rgba(0, 230, 118, 0.12), transparent 28%),
        linear-gradient(135deg, #08140f 0%, #101f1b 35%, #171b2e 100%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00e676;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-logo:hover {
    color: #69f0ae;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #8892b0;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: #00e676;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    margin-top: 80px;
    padding: 120px 20px 80px;
    background: radial-gradient(circle at center, rgba(0, 230, 118, 0.1) 0%, transparent 70%);
    text-align: center;
    border-bottom: 1px solid rgba(0, 230, 118, 0.1);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 230, 118, 0.12), transparent 30%),
        radial-gradient(circle at 82% 28%, rgba(0, 188, 212, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.03), transparent 38%, rgba(0,0,0,0.16));
    pointer-events: none;
}

#particle-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 230, 118, 0.3);
    background: rgba(6, 22, 14, 0.45);
    color: #a8f5c0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero-halo {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.18), rgba(0, 230, 118, 0.03) 55%, transparent 72%);
    filter: blur(18px);
    pointer-events: none;
}

.hero-title {
    font-size: 4rem;
    color: #00e676;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(0, 230, 118, 0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a5d6a7;
    margin-bottom: 30px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-left: 3px solid #00e676;
    padding-left: 20px;
    display: inline-block;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-badge {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid #00e676;
    color: #00e676;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Canvas Section */
.canvas-section {
    padding: 80px 20px;
    background: transparent;
}

.canvas-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 50px rgba(0, 230, 118, 0.15);
    background: #000;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.canvas-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 30%, transparent 65%, rgba(0,188,212,0.08));
    z-index: 9;
}

/* Cinematic Vignette Overlay */
.canvas-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, transparent 60%, rgba(0, 20, 10, 0.8) 100%);
    pointer-events: none;
    z-index: 10;
}

.interactive-video {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.canvas-wrapper.is-playing .interactive-video {
    filter: saturate(1.05) contrast(1.03);
}

.canvas-wrapper.is-branching .interactive-video {
    filter: saturate(0.9) blur(1px);
}

/* Central Play Button */
.central-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    background: rgba(0, 230, 118, 0.1);
    border: 2px solid #00e676;
    color: #00e676;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.central-play-btn:hover {
    background: rgba(0, 230, 118, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
}

.canvas-wrapper.is-playing .central-play-btn {
    display: none;
}

.canvas-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    padding: 0;
    z-index: 20;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.playback-status {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 21;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 230, 118, 0.28);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    color: #c3f7d0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.canvas-overlay-ui {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 21;
}

.instruction {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 230, 118, 0.18);
    background: rgba(0, 0, 0, 0.38);
    color: #b5e8bd;
    font-size: 0.84rem;
    backdrop-filter: blur(8px);
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    transition: height 0.2s;
}

.progress-container:hover {
    height: 10px;
}

.progress-fill {
    height: 100%;
    background: #00e676;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.controls-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 15px 20px;
}

.control-btn {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid #00e676;
    color: #00e676;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-btn:hover {
    background: #00e676;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

.control-btn:active {
    transform: translateY(0);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: #00e676;
    padding-right: 10px;
}

.volume-slider {
    accent-color: #00e676;
    cursor: pointer;
    width: 80px;
    height: 4px;
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00e676;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00e676;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

/* Timeline Display */
.timeline-display {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #a5d6a7;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 20px;
    font-family: 'Courier New', monospace;
}

/* Choice Overlay */
.choice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 30;
    border-radius: 12px;
    padding: 30px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.choice-prompt {
    color: #00e676;
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
    letter-spacing: 2px;
    text-align: center;
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.choice-btn {
    background: rgba(0, 230, 118, 0.1);
    border: 2px solid #00e676;
    color: #00e676;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.choice-btn:hover {
    background: #00e676;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
    transform: translateY(-2px);
}

.choice-btn:active {
    transform: translateY(0);
}

.choice-btn.warning {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.choice-btn.warning:hover {
    background: #ff6b6b;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* Details Section */
.details-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(5, 10, 5, 0) 0%, rgba(5, 20, 10, 0.3) 100%);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.details-card {
    background: rgba(10, 20, 15, 0.6);
    border: 1px solid rgba(0, 230, 118, 0.1);
    border-left: 3px solid #00e676;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.details-card::before {
    content: 'LOG_ENTRY //';
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(0, 230, 118, 0.5);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.details-card:hover {
    border-color: rgba(0, 230, 118, 0.5);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.1);
    transform: translateY(-5px);
    background: rgba(10, 25, 15, 0.8);
}

.details-card.is-visible {
    animation: edenCardRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes edenCardRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title {
    color: #00e676;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
}

.card-text {
    color: #a5d6a7;
    line-height: 1.8;
}

.interaction-guide, .tech-list {
    list-style: none;
    color: #a5d6a7;
}

.interaction-guide li, .tech-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 230, 118, 0.1);
}

.interaction-guide li:last-child, .tech-list li:last-child {
    border-bottom: none;
}

.interaction-guide strong, .tech-list strong {
    color: #00e676;
}

/* Feature List */
.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #00e676;
    font-weight: 600;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(0, 230, 118, 0.2);
    transform: translateY(-2px);
}

/* Map Section */
.map-section {
    padding: 80px 20px;
    background: rgba(0, 230, 118, 0.02);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #00e676;
    margin-bottom: 50px;
    font-weight: 700;
}

.section-title::before {
    content: '// ';
    color: rgba(0, 230, 118, 0.4);
}

.narrative-map {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Timeline Line */
.narrative-map::before {
    content: '';
    position: absolute;
    top: 50px; /* Aligns with center of 60px circle + padding */
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.4), transparent);
    z-index: 0;
}

.branch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.node-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #050a05; /* Opaque background to hide the line behind */
    border: 2px solid #00e676;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #00e676;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}

.branch-node:hover .node-circle {
    background: #00e676;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
    transform: scale(1.1);
}

.branch-node p {
    color: #a5d6a7;
    font-size: 0.9rem;
    font-weight: 600;
}

.branch-connector {
    display: none; /* Hide text arrows in favor of the timeline line */
}

/* Credits Section */
.credits-section {
    padding: 80px 20px;
    background: transparent;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.credit-item {
    text-align: center;
    background: rgba(10, 20, 15, 0.6);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
}

.credit-item:hover {
    border-color: rgba(0, 230, 118, 0.5);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
    transform: translateY(-5px);
}

.credit-item h3 {
    color: #00e676;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.credit-item p {
    color: #a5d6a7;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(5, 20, 10, 0.3) 0%, rgba(0, 230, 118, 0.05) 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #00e676;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: #a5d6a7;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.primary-btn {
    background: #00e676;
    color: #000;
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.4);
}

.secondary-btn {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid #00e676;
}

.secondary-btn:hover {
    background: rgba(0, 230, 118, 0.2);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: rgba(10, 14, 26, 0.9);
    border-top: 1px solid rgba(0, 230, 118, 0.2);
    padding: 30px 20px;
    text-align: center;
    color: #a5d6a7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }

    .interactive-canvas {
        height: 400px;
    }

    .hero-halo {
        width: 260px;
        height: 260px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .controls-row {
        flex-wrap: wrap;
    }

    .playback-status,
    .canvas-overlay-ui {
        position: static;
        margin: 12px 12px 0;
    }

    .canvas-controls {
        position: relative;
    }

    .narrative-map {
        flex-direction: column;
        gap: 10px;
    }
}
