/* ===================================================
   WEBPOT
   Interactive Ecosystem Solar System Styles
   File: solar-system.css
 =================================================== */

.solar-section {
    padding: var(--section-padding) 0;
    position: relative;
    background: transparent;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.solar-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 10;
}

.solar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    color: #2563eb;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 99px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}

.solar-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.solar-title span {
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 40%, #818cf8 70%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solar-subtitle {
    font-size: 1.08rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================
   3D SOLAR SYSTEM STAGE & ORBITS
 ========================================== */

.solar-stage-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    user-select: none;
    overflow: visible;
}

/* Dynamic Connection SVG Overlay Layer */
.solar-connection-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    overflow: visible;
}

.solar-line-glow {
    transition: opacity 0.2s ease, stroke 0.3s ease;
}

.solar-line-main {
    transition: opacity 0.2s ease, stroke 0.3s ease;
}

.solar-line-particle {
    transition: opacity 0.2s ease, fill 0.3s ease;
}

.solar-orbit-container {
    position: absolute;
    width: 900px;
    height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateX(65deg) rotateY(-10deg);
    transform-style: preserve-3d;
}

/* Central Webpot Core Sun Engine (Matches Reference Image) */
.solar-sun-core {
    position: absolute;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transform: rotateY(10deg) rotateX(-65deg);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.sun-glowing-aura {
    position: absolute;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(168, 85, 247, 0.25) 60%, transparent 100%);
    filter: blur(14px);
    animation: sunAuraPulse 4s ease-in-out infinite alternate;
    transition: background 0.4s ease, transform 0.3s ease;
}

.sun-core-badge {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 2px solid #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), 0 8px 24px rgba(37, 99, 235, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.sun-core-badge svg {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
    transition: filter 0.4s ease, color 0.4s ease;
}

.sun-ring-dash1 {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 1.5px dashed rgba(56, 189, 248, 0.4);
    animation: spinClockwise 20s linear infinite;
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.sun-ring-dash2 {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px dashed rgba(168, 85, 247, 0.35);
    animation: spinCounter 30s linear infinite;
    pointer-events: none;
    transition: border-color 0.4s ease;
}

/* Thin Orbit Lines */
.orbit-ring-line {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    pointer-events: none;
}

.orbit-ring-line.inner { width: 350px; height: 350px; }
.orbit-ring-line.mid { width: 570px; height: 570px; }
.orbit-ring-line.outer { width: 790px; height: 790px; }

/* Planet Node Wrapper (revolves on orbit) */
.planet-node-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    animation: orbitRevolve var(--orbit-dur) linear infinite;
}

/* Minimalist Planet Logo Card */
.planet-card {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) rotateZ(0deg) rotateY(10deg) rotateX(-65deg);
    animation: billboardCancel var(--orbit-dur) linear infinite;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 10;
}

.planet-card:hover {
    border-color: var(--planet-color);
    box-shadow: 0 0 20px var(--planet-glow), 0 8px 25px rgba(37, 99, 235, 0.15);
    background: rgba(255, 255, 255, 0.98);
    transform: translate(-50%, -50%) rotateZ(0deg) rotateY(10deg) rotateX(-65deg) scale(1.14);
    z-index: 50;
}

.planet-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planet-label {
    letter-spacing: -0.01em;
}

/* Cosmic Particles for Realistic Model */
.cosmic-particle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--particle-color);
    box-shadow: 0 0 8px var(--particle-color), 0 0 14px var(--particle-color);
    opacity: 0.8;
    transform: translate(-50%, -50%) rotateZ(0deg) rotateY(10deg) rotateX(-65deg);
    animation: billboardCancel var(--orbit-dur) linear infinite;
    pointer-events: none;
}

/* Keyframes */
@keyframes orbitRevolve {
    0% { transform: translate(-50%, -50%) rotateZ(0deg) translateX(var(--orbit-r)); }
    100% { transform: translate(-50%, -50%) rotateZ(-360deg) translateX(var(--orbit-r)); }
}

@keyframes billboardCancel {
    0% { transform: translate(-50%, -50%) rotateZ(0deg) rotateY(10deg) rotateX(-65deg); }
    100% { transform: translate(-50%, -50%) rotateZ(360deg) rotateY(10deg) rotateX(-65deg); }
}

@keyframes sunAuraPulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

@keyframes spinClockwise {
    0% { transform: rotateX(65deg) rotateY(-10deg) rotateZ(0deg); }
    100% { transform: rotateX(65deg) rotateY(-10deg) rotateZ(360deg); }
}

@keyframes spinCounter {
    0% { transform: rotateX(65deg) rotateY(-10deg) rotateZ(0deg); }
    100% { transform: rotateX(65deg) rotateY(-10deg) rotateZ(-360deg); }
}

/* Detail Readout Card */
.solar-detail-card {
    position: relative;
    max-width: 540px;
    margin: 20px auto 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 20px;
    padding: 16px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    color: #0f172a;
    z-index: 20;
}

.solar-detail-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.solar-detail-text {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}
