/* shared-theme.css */

/* From base.css */
:root {
    --bg-primary: #0A0A14;
    --bg-secondary: #1c1c2b;
    --bg-accent: #2a2a3f;
    --text-primary: #EAEAEA;
    --text-secondary: #C0C0C0;
    --accent-primary: #FFD700;
    --accent-secondary: #FFA500;
    --accent-primary-rgb: 255, 215, 0;
    --accent-secondary-rgb: 255, 165, 0;
    --text-primary-rgb: 234, 234, 234;
    --text-secondary-rgb: 192, 192, 192;
    --accent-tertiary: #4DD0E1;
    --accent-tertiary-rgb: 77, 208, 225;
    --header-height: 60px;
    --header-gradient-shimmer: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000003;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    position: relative;
    display: flex; /* Added to help with footer always at bottom */
    flex-direction: column; /* Added */
    min-height: 100vh; /* Added */
}

#spaceBackgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

/* From layout.css (Header & Footer) */
#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(60, 60, 70, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 0 1rem;
}

#mainHeader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--header-gradient-shimmer),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer-gradient 10s linear infinite;
}

@keyframes shimmer-gradient {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Added for consistency */
    margin: 0 auto; /* Added for centering */
}

.page-main-content {
    padding-top: var(--header-height);
    flex-grow: 1; /* Added for footer positioning */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content by default */
    padding-bottom: 80px; /* Space for footer */
}

#siteFooter {
    background-color: rgba(44, 44, 50, 0.9);
    backdrop-filter: blur(5px);
    color: var(--text-secondary);
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(var(--accent-primary-rgb), 0.15);
    width: 100%;
    margin-top: auto; /* Pushes footer to bottom if content is short */
}

#siteFooter .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
}

#siteFooter .footer-content p {
    margin: 0.25rem 0;
}

/* From components.css (Header & Footer styling) */
#mainHeader .logo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 5px color-mix(in srgb, var(--accent-primary) 30%, transparent);
}

#mainNav a.nav-link {
    color: var(--text-secondary);
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

#mainNav a.nav-link:hover {
    color: var(--accent-tertiary);
}

#mainNav a.nav-link.active-nav-link {
    color: var(--accent-primary);
}

#mainNav a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent; 
    transition: width 0.3s ease, background-color 0.3s ease;
}

#mainNav a.nav-link:hover::after {
    width: 70%;
    background-color: var(--accent-tertiary);
}

#mainNav a.nav-link.active-nav-link::after {
    width: 70%;
    background-color: var(--accent-primary);
}

/* Basic button style (can be expanded) */
.btn {
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-accent);
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
    background-color: color-mix(in srgb, var(--bg-accent) 80%, var(--accent-primary) 20%);
    color: var(--accent-primary);
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
    #mainHeader {
        padding: 0 0.5rem;
    }
    .header-content {
        flex-direction: column;
        justify-content: center;
        padding: 0.5rem 0;
        height: auto;
    }
    #mainNav {
        margin-top: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    #mainNav a.nav-link {
        margin: 5px 10px;
    }
    .page-main-content {
        padding-top: calc(var(--header-height) + 50px); /* Approximate increased header height */
    }
    #siteFooter {
        padding: 1rem;
    }
    #siteFooter .footer-content { 
        font-size: 0.8rem; 
    }
} 