/* Orbital Logo Styles - Family History Theme */
.orbital-logo {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 3rem auto;
    z-index: 1;
}

.center-sphere {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #667eea;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6),
                inset 0 -5px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: background-color 0.3s ease;
}

/* Dark mode adjustments */
[data-theme="dark"] .center-sphere {
    background: #A29BFE;
    box-shadow: 0 0 25px rgba(162, 155, 254, 0.8),
                inset 0 -5px 10px rgba(0, 0, 0, 0.3);
}

.orbit {
    position: absolute;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

[data-theme="dark"] .orbit {
    border-color: rgba(162, 155, 254, 0.4);
}

.orbit-1 {
    width: 60px;
    height: 60px;
}

.orbit-2 {
    width: 80px;
    height: 80px;
}

.orbit-3 {
    width: 100px;
    height: 100px;
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
                0 0 8px currentColor;
    transition: background 1s ease, box-shadow 0.3s ease;
    transform-origin: center;
    will-change: transform;
    z-index: 5;
}

[data-theme="dark"] .orbit-dot {
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6),
                0 0 10px currentColor;
}

.orbit-dot:hover {
    cursor: pointer;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .orbital-logo {
        width: 90px;
        height: 90px;
        margin: 1.5rem auto;
    }
    
    .center-sphere {
        width: 32px;
        height: 32px;
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.7),
                    inset 0 -3px 6px rgba(0, 0, 0, 0.2);
    }
    
    .orbit-1 {
        width: 48px;
        height: 48px;
    }
    
    .orbit-2 {
        width: 64px;
        height: 64px;
    }
    
    .orbit-3 {
        width: 80px;
        height: 80px;
    }
    
    .orbit-dot {
        width: 10px;
        height: 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4),
                    0 0 6px currentColor;
    }
}

@media (max-width: 480px) {
    .orbital-logo {
        width: 70px;
        height: 70px;
        margin: 1rem auto;
    }
    
    .center-sphere {
        width: 26px;
        height: 26px;
        box-shadow: 0 0 12px rgba(102, 126, 234, 0.8),
                    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .orbit-1 {
        width: 38px;
        height: 38px;
    }
    
    .orbit-2 {
        width: 52px;
        height: 52px;
    }
    
    .orbit-3 {
        width: 66px;
        height: 66px;
    }
    
    .orbit-dot {
        width: 9px;
        height: 9px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5),
                    0 0 5px currentColor;
    }
}

/* Animation states */
.orbital-logo.loading {
    opacity: 0.5;
}

.orbital-logo.loaded {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Integration with landing page */
.orbital-section {
    padding: 4rem 0;
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

[data-theme="dark"] .orbital-section {
    background: var(--bg-card-dark);
    border-color: var(--border-default-dark);
}

.orbital-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.orbital-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .orbital-section {
        padding: 3rem 1rem;
    }
    
    .orbital-section h2 {
        font-size: 1.5rem;
    }
    
    .orbital-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .orbital-section {
        padding: 2rem 1rem;
    }
    
    .orbital-section h2 {
        font-size: 1.25rem;
    }
    
    .orbital-section p {
        font-size: 0.95rem;
    }
}