/* Shared Styles - Base, Background, Navigation & Footer */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Poppins:wght@400;500;600;700&display=swap');

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

:root {
    --primary-color: #5865f2;
    --primary-dark: #4752c4;
    --secondary-color: #7c3aed;
    --accent-color: #00ff88;
    --bg-dark: #000000;
    --text-primary: #ffffff;
    --text-secondary: #b9bbbe;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Cosmic Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(10, 10, 26, 0.95) 0%, rgba(26, 10, 62, 0.9) 50%, rgba(15, 31, 62, 0.95) 100%);
    background-size: 400% 400%;
    animation: cosmicGradient 20s ease infinite;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(88, 101, 242, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.25) 0%, transparent 30%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 60% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 30%);
    animation: rotateNebula 40s linear infinite;
    pointer-events: none;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}

@keyframes cosmicGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rotateNebula {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Link Colors */
a {
    color: #ffffff;
    text-decoration: none;
}

a:visited {
    color: #ffffff;
}

a:hover {
    color: var(--primary-color);
}

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

/* ==================== NAVIGATION HEADER ==================== */
.site-header {
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .logo .cub {
    background: linear-gradient(135deg, #5865f2 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-header .logo .software {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.site-header .logo:hover {
    opacity: 0.9;
}

.site-nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

.site-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.site-nav a:hover {
    color: #ffffff;
}

.site-nav a.active {
    color: var(--primary-color);
}

/* ==================== FOOTER ==================== */
.footer {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-text {
    margin-bottom: 10px;
}

.footer-link {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-link:hover {
    color: var(--secondary-color);
}

.footer-legal-links {
    margin-top: 10px;
    font-size: 0.85rem;
}

.footer-legal-link {
    color: #ffffff !important;
}

.footer-legal-link:hover {
    opacity: 0.8;
}

.footer-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 20px;
    }

    .header-top {
        flex-direction: column;
        gap: 12px;
    }

    .site-header .logo {
        font-size: 1.3rem;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .site-header .logo {
        font-size: 1.2rem;
    }

    .site-nav a {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .footer-separator {
        margin: 0 5px;
    }
}
