/* =========================
   BODY & BACKGROUND
========================= */
body {
    margin: 0;
    background: radial-gradient(circle, #000 55%, #020824);
    height: 100vh;
    overflow: auto;
    background: url(images/empty\ space.jpg);
}

/* =========================
   SOLAR SYSTEM
========================= */
.solar-system {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1; /* keep solar system behind the menu */
}

/* ☀️ Sun */
.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #ffdd00, #ff8800);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 60px orange;
}

/* Orbit base */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 50%;
}

/* Planet */
.planet {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

/* 🔄 Spin */
@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ☄️ Mercury */
.mercury { width: 180px; height: 180px; animation: spin 6s linear infinite; }
.mercury .planet { width: 8px; height: 8px; background: gray; }

/* 🌕 Venus */
.venus { width: 240px; height: 240px; animation: spin 10s linear infinite; }
.venus .planet { width: 14px; height: 14px; background: #e6c87c; }

/* 🌍 Earth */
.earth { width: 300px; height: 300px; animation: spin 14s linear infinite; }
.earth .planet { width: 16px; height: 16px; background: #2a75ff; }

/* 🔴 Mars */
.mars { width: 360px; height: 360px; animation: spin 18s linear infinite; }
.mars .planet { width: 12px; height: 12px; background: #c1440e; }

/* 🟠 Jupiter */
.jupiter { width: 460px; height: 460px; animation: spin 30s linear infinite; }
.jupiter .planet { width: 32px; height: 32px; background: #d2b48c; }

/* 🪐 Saturn */
.saturn { width: 560px; height: 560px; animation: spin 40s linear infinite; }
.saturn .planet { width: 28px; height: 28px; background: #e3c97b; position: relative; }

.ring {
    position: absolute;
    width: 50px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(20deg);
}

/* 🟢 Uranus */
.uranus { width: 650px; height: 650px; animation: spin 55s linear infinite; }
.uranus .planet { width: 22px; height: 22px; background: #7fffd4; }

/* 🔵 Neptune */
.neptune { width: 730px; height: 730px; animation: spin 70s linear infinite; }
.neptune .planet { width: 22px; height: 22px; background: #4169e1; }

/* Hover glow */
.orbit:hover .planet {
    box-shadow: 0 0 12px white;
}

/* 🏷️ Planet Labels */
.label {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(10px, -50%);
    color: white;
    font-size: 12px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 0 5px black;
}

.orbit:hover .label {
    color: #ffd700;
}

/* Click feedback */
.orbit {
    text-decoration: none;
}

.orbit:hover .planet {
    box-shadow: 0 0 12px white;
}

/* =========================
   PLANET MENU
========================= */
.planet-menu {
    position: fixed; /* fixed so menu stays on top */
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    z-index: 10; /* on top of solar system */
}

.planet-menu h2 {
    color: #ffd700;
    margin-bottom: 10px;
    text-align: center;
}

.planet-menu a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 6px 0;
    padding: 4px 8px;
    border-radius: 5px;
    pointer-events: auto;
}

.planet-menu a:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* =========================
   PLANET PAGE STYLING
========================= */
.planet-page {
    max-width: 900px;
    margin: auto;
    padding: 40px;
    color: white;
    font-family: Arial, sans-serif;
}

.planet-page h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
}

.planet-page .intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

.planet-page h3 {
    margin-top: 30px;
}

/* Planet image */
.planet-image {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.planet-image img {
    width: auto;               /* show full image */
    max-width: 350px;
    height: auto;
    max-height: 350px;
    border-radius: 50%;        /* circular */
    transition: transform 0.3s, box-shadow 0.3s;
}

.planet-image img:hover {
    transform: scale(1.05); 
    box-shadow: 0 0 60px rgba(255,255,255,0.8); /* subtle glow on hover */
}

/* Facts list */
.planet-page ul {
    margin-left: 20px;
    line-height: 1.6;
}

/* Video styling */
.planet-page video {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    border-radius: 10px;
    outline: none;
}

/* Bottom navigation tabs */
.bottom-tabs {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.bottom-tabs a {
    padding: 10px 20px;
    background: rgba(255,215,0,0.2);
    color: #ffd700;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.bottom-tabs a:hover {
    background: rgba(255,215,0,0.6);
    color: black;
}

