/**
 * Universal Layout CSS
 * Ensures consistent page structure and width across all pages
 */

/* Universal Page Structure */
.universal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Container */
#navigation-container {
    position: relative;
    z-index: 1000;
    width: 100%;
}

/* Consistent Page Container */
.page-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Content Wrapper for consistent spacing */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header standardization */
.header {
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo styling */
.logo {
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover .logo-text {
    color: #64b5f6;
    transition: color 0.3s ease;
}

/* Navigation links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(100, 181, 246, 0.1);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: #64b5f6;
    background: rgba(100, 181, 246, 0.15);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #64b5f6;
    border-radius: 1px;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .page-container,
    .content-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Main content area */
main {
    flex: 1;
    width: 100%;
}

/* Footer consistency */
.footer {
    width: 100%;
    margin-top: auto;
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Background elements positioning */
.stars,
.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.twinkling {
    z-index: -1;
}

/* Ensure content is above background */
.universal-page > * {
    position: relative;
    z-index: 1;
}

/* Loading state for navigation */
#navigation-container:empty::before {
    content: 'Loading navigation...';
    display: block;
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

