﻿/* ============================================
   NAVIGATION.CSS - STARFIELD NAVIGATION SYSTEM
   "I Am Everywhere" - Fullscreen Planet Navigation
   Complete styles for holographic navigation
   ============================================ */

/* ===== NAVIGATION TRIGGER BUTTON ===== */
.nav-trigger {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(15px);
    border: 2px solid var(--holo-pink-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--holo-pink-glow), 0 4px 20px rgba(255, 110, 199, 0.4), inset 0 0 15px rgba(255, 110, 199, 0.1);
    position: relative;
    overflow: hidden;
}

    .nav-trigger::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, var(--holo-pink-glow) 0%, transparent 70%);
        animation: trigger-pulse 3s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes trigger-pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.nav-trigger:hover {
    transform: scale(1.1);
    border-color: var(--holo-pink-bright);
    box-shadow: 0 0 35px var(--holo-pink-glow), 0 6px 30px rgba(255, 110, 199, 0.6), inset 0 0 25px rgba(255, 110, 199, 0.2);
}

.nav-trigger-icon {
    font-size: 28px;
    color: var(--holo-pink-soft);
    text-shadow: 0 0 15px var(--holo-pink-glow);
    animation: holo-icon-spin 4s linear infinite;
    position: relative;
    z-index: 1;
}

@keyframes holo-icon-spin {
    0% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 10px var(--holo-pink-glow));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--holo-pink-glow));
    }

    100% {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 10px var(--holo-pink-glow));
    }
}

/* ===== FULLSCREEN STARFIELD OVERLAY ===== */
.nav-starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cosmos-deep);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
    display: none;
}

    .nav-starfield.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: block;
    }

/* Holographic particle starfield */
.starfield-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(2px 2px at 20% 30%, var(--holo-pink-bright), transparent), radial-gradient(1px 1px at 60% 70%, var(--holo-cyan), transparent), radial-gradient(1px 1px at 50% 50%, var(--holo-purple), transparent), radial-gradient(2px 2px at 80% 10%, var(--holo-pink-mid), transparent), radial-gradient(1px 1px at 90% 60%, var(--holo-pink-bright), transparent), radial-gradient(1px 1px at 33% 80%, var(--holo-cyan), transparent), radial-gradient(1px 1px at 15% 90%, var(--holo-purple), transparent), radial-gradient(2px 2px at 40% 20%, var(--holo-pink-soft), transparent), radial-gradient(1px 1px at 70% 40%, var(--holo-cyan), transparent);
    background-size: 200% 200%;
    animation: holo-starfield-drift 120s linear infinite;
    opacity: 0.5;
}

@keyframes holo-starfield-drift {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 0.5;
    }

    50% {
        background-position: 100% 100%, 50% 50%, 25% 75%, 75% 25%, 10% 90%, 90% 10%, 60% 40%, 30% 70%, 80% 20%;
        opacity: 0.7;
    }
}

/* Scan lines overlay on starfield */
.nav-starfield::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient( 0deg, transparent 0px, var(--scan-line-color) 1px, transparent 2px, transparent 4px );
    animation: nav-scan-lines 8s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.25;
}

@keyframes nav-scan-lines {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* HUD glow overlay */
.nav-starfield::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient( ellipse at 50% 50%, var(--holo-pink-glow) 0%, rgba(199, 125, 255, 0.2) 40%, transparent 70% );
    animation: nav-holo-pulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes nav-holo-pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

/* ===== CLOSE BUTTON ===== */
.nav-close {
    position: fixed;
    top: 30px;
    right: -20px;
    width: 50px;
    height: 50px;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(15px);
    border: 2px solid var(--holo-pink-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 0 20px var(--holo-pink-glow), inset 0 0 10px rgba(255, 110, 199, 0.1);
    overflow: hidden;
    position: relative;
}

    .nav-close::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 110, 199, 0.3) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-close:hover::before {
        opacity: 1;
        animation: close-pulse 1.5s ease-in-out infinite;
    }

@keyframes close-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.nav-close:hover {
    background: rgba(26, 31, 58, 0.95);
    border-color: var(--holo-pink-bright);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 35px var(--holo-pink-glow), inset 0 0 20px rgba(255, 110, 199, 0.2);
}

.nav-close-icon {
    font-size: 30px;
    color: var(--holo-pink-soft);
    text-shadow: 0 0 15px var(--holo-pink-glow);
    position: relative;
    z-index: 1;
}

/* ===== PLANET CONTAINER ===== */
.planets-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* ===== INDIVIDUAL PLANETS ===== */
.planet {
    position: absolute;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.planet-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-holo);
    box-shadow: 0 0 30px var(--holo-pink-glow), inset 0 0 20px rgba(255, 255, 255, 0.2), 0 8px 25px rgba(255, 110, 199, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
    animation: holo-planet-float 4s ease-in-out infinite;
    border: 2px solid var(--holo-pink-mid);
}

@keyframes holo-planet-float {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 30px var(--holo-pink-glow), inset 0 0 20px rgba(255, 255, 255, 0.2), 0 8px 25px rgba(255, 110, 199, 0.4);
    }

    50% {
        transform: translateY(-15px);
        box-shadow: 0 0 40px var(--holo-pink-glow), inset 0 0 30px rgba(255, 255, 255, 0.3), 0 12px 35px rgba(255, 110, 199, 0.5);
    }
}

/* Holographic rotating ring */
.planet-orb::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid var(--holo-pink-bright);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: holo-orbit-ring 3s linear infinite;
    box-shadow: 0 0 15px var(--holo-pink-glow);
}

@keyframes holo-orbit-ring {
    0% {
        transform: rotate(0deg);
        border-color: var(--holo-pink-bright);
    }

    33% {
        border-color: var(--holo-purple);
    }

    66% {
        border-color: var(--holo-cyan);
    }

    100% {
        transform: rotate(360deg);
        border-color: var(--holo-pink-bright);
    }
}

.planet:hover .planet-orb::before {
    opacity: 1;
}

/* Data stream effect on planets */
.planet-orb::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, transparent, var(--holo-pink-glow), transparent );
    border-radius: 50%;
    opacity: 0;
}

.planet:hover .planet-orb::after {
    animation: planet-data-stream 2s ease-in-out infinite;
    opacity: 1;
}

@keyframes planet-data-stream {
    0% {
        left: -100%;
    }

    50%, 100% {
        left: 100%;
    }
}

/* Planet label with HUD styling */
.planet-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    background: rgba(26, 31, 58, 0.9);
    backdrop-filter: blur(15px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--holo-pink-mid);
    color: var(--holo-pink-soft);
    font-family: 'Georgia', serif;
    font-size: 16px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 15px var(--holo-pink-glow), inset 0 0 10px rgba(255, 110, 199, 0.1);
    text-shadow: 0 0 10px var(--holo-pink-glow);
}

.planet:hover .planet-label {
    opacity: 1;
}

/* Planet hover effects */
.planet:hover {
    transform: scale(1.2);
    z-index: 100;
}

    .planet:hover .planet-orb {
        box-shadow: 0 0 50px var(--holo-pink-glow), inset 0 0 30px rgba(255, 255, 255, 0.3), 0 12px 40px rgba(255, 110, 199, 0.6);
        animation: holo-planet-pulse 0.8s ease-in-out infinite;
        border-color: var(--holo-pink-bright);
    }

@keyframes holo-planet-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* ===== PLANET POSITIONS (scattered across screen) ===== */
.planet-home {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.planet-journey {
    top: 15%;
    left: 30%;
}

.planet-legacy {
    top: 20%;
    left: 70%;
}

.planet-memories {
    top: 50%;
    left: 20%;
}

.planet-footprints {
    top: 55%;
    left: 75%;
}

.planet-resources {
    top: 30%;
    left: 15%;
}

.planet-snapshots {
    top: 35%;
    left: 85%;
}

.planet-heartbeat {
    top: 65%;
    left: 45%;
}

.planet-lullabies {
    top: 10%;
    left: 50%;
}

.planet-contact {
    top: 70%;
    left: 25%;
}

.planet-support {
    top: 72%;
    left: 70%;
}

/* Special styling for home planet (center) */
.planet-home .planet-orb {
    width: 120px;
    height: 120px;
    font-size: 50px;
    background: linear-gradient(135deg, var(--holo-pink-bright) 0%, var(--holo-purple) 50%, var(--holo-cyan) 100%);
    box-shadow: 0 0 60px var(--holo-pink-glow), inset 0 0 40px rgba(255, 255, 255, 0.4), 0 15px 50px rgba(255, 110, 199, 0.6);
    animation: home-holo-glow 2s ease-in-out infinite;
    border: 3px solid var(--holo-pink-bright);
}

@keyframes home-holo-glow {
    0%, 100% {
        box-shadow: 0 0 60px var(--holo-pink-glow), inset 0 0 40px rgba(255, 255, 255, 0.4), 0 15px 50px rgba(255, 110, 199, 0.6);
    }

    50% {
        box-shadow: 0 0 90px var(--holo-pink-glow), inset 0 0 60px rgba(255, 255, 255, 0.6), 0 20px 70px rgba(255, 110, 199, 0.8);
    }
}

/* Special styling for support planet */
.planet-support .planet-orb {
    background: linear-gradient(135deg, var(--holo-pink-bright) 0%, #ff6fa3 100%);
    box-shadow: 0 0 40px rgba(255, 110, 199, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3), 0 10px 35px rgba(255, 110, 199, 0.5);
    animation: heart-holo-pulse 1.5s ease-in-out infinite;
}

@keyframes heart-holo-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 40px rgba(255, 110, 199, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3), 0 10px 35px rgba(255, 110, 199, 0.5);
    }

    50% {
        transform: translateY(-15px) scale(1.1);
        box-shadow: 0 0 60px rgba(255, 110, 199, 1), inset 0 0 30px rgba(255, 255, 255, 0.4), 0 15px 50px rgba(255, 110, 199, 0.7);
    }
}

/* ===== CONSTELLATION LINES (holographic connections) ===== */
.constellation-line {
    position: absolute;
    height: 2px;
    background: linear-gradient( to right, transparent, var(--holo-pink-glow), var(--holo-purple), transparent );
    transform-origin: left center;
    pointer-events: none;
    opacity: 0.3;
    box-shadow: 0 0 8px var(--holo-pink-glow);
    animation: constellation-pulse 4s ease-in-out infinite;
}

@keyframes constellation-pulse {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .planet-orb {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .planet-home .planet-orb {
        width: 100px;
        height: 100px;
        font-size: 44px;
    }

    .planet-label {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .nav-trigger {
        top: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }

    .nav-trigger-icon {
        font-size: 24px;
    }

    .nav-close {
        top: 20px;
        right: -20px;
        width: 45px;
        height: 45px;
    }

    .planet-orb {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .planet-home .planet-orb {
        width: 90px;
        height: 90px;
        font-size: 40px;
    }

    .planet-label {
        font-size: 13px;
        padding: 5px 10px;
    }

    /* Adjust positions for mobile */
    .planet-home {
        top: 45%;
        left: 50%;
    }

    .planet-journey {
        top: 12%;
        left: 25%;
    }

    .planet-legacy {
        top: 17%;
        left: 75%;
    }

    .planet-memories {
        top: 48%;
        left: 15%;
    }

    .planet-footprints {
        top: 52%;
        left: 80%;
    }

    .planet-resources {
        top: 30%;
        left: 10%;
    }

    .planet-snapshots {
        top: 35%;
        left: 88%;
    }

    .planet-heartbeat {
        top: 65%;
        left: 50%;
    }

    .planet-lullabies {
        top: 8%;
        left: 50%;
    }

    .planet-contact {
        top: 72%;
        left: 20%;
    }

    .planet-support {
        top: 75%;
        left: 75%;
    }
}

@media (max-width: 480px) {
    .nav-trigger {
        width: 45px;
        height: 45px;
    }

    .nav-trigger-icon {
        font-size: 20px;
    }

    .planet-orb {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .planet-home .planet-orb {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .planet-label {
        font-size: 12px;
        padding: 4px 8px;
        margin-top: 10px;
    }
}

/* ===== ACCESSIBILITY ===== */
.planet:focus-visible {
    outline: 3px solid var(--holo-pink-bright);
    outline-offset: 8px;
    border-radius: 50%;
}

.nav-trigger:focus-visible,
.nav-close:focus-visible {
    outline: 3px solid var(--holo-pink-bright);
    outline-offset: 4px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .planet-orb,
    .planet-orb::before,
    .planet-orb::after,
    .nav-trigger-icon,
    .starfield-bg,
    .nav-starfield::before,
    .nav-starfield::after,
    .nav-trigger::before,
    .constellation-line {
        animation: none !important;
    }

    .planet:hover {
        transform: scale(1.1);
    }
}

/* ===== PRINT ===== */
@media print {
    .nav-trigger,
    .nav-starfield {
        display: none !important;
    }
}
