/* 
 * OPENSKY Styles
 * Main stylesheet for OPENSKY website
 */

/* Font definitions */
@font-face {
    font-family: 'Andale Mono';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: local('Andale Mono'), url('andale_mono.woff') format('woff');
}

@font-face {
    font-family: 'Avenir Next Cyr';
    font-style: italic;
    font-weight: bold;
    font-display: swap;
    src: local('Avenir Next Cyr'), url('avenir_next_italic.woff') format('woff');
}

/* CSS Variables */
:root {
    --color-primary: #165dff;
    --color-secondary: #36cfc9;
    --color-accent: #722ed1;
    --color-dark: #1d2129;
    --color-light: #f2f3f5;
    --color-muted: #86909c;
}

/* Base styles */
body {
    font-family: "Andale Mono", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    background-color: #f2f3f5;
    color: #1d2129;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Removed header and nav styles as layout now uses sidebar */

.hidden {
    display: none;
}

/* Sidebar navigation link styles */
.sidebar-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.25rem 0;
}

.sidebar-link:hover {
    color: #111827;
    background-color: #f3f4f6;
}

.sidebar-social-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0;
}

.sidebar-social-link:hover {
    color: #374151;
    background-color: #f9fafb;
}

/* Loading indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #374151;
    z-index: 9999;
    transform: translateX(-100%);
}

.loading-indicator.active {
    animation: loading 2s ease-in-out forwards;
}

#page-loader.loading-indicator {
    background-color: gray;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(-10%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Video container styles */
.video-container {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
}

.video-container.loaded {
    opacity: 1;
}

.video-container.menu-active {
    transform: translateY(150px);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top,
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.2),
            transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
}

.video-overlay:hover {
    opacity: 1;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Sidebar styles */
aside {
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Main content adjustment for sidebar */
.ml-64 {
    margin-left: 16rem;
}

/* Mobile header styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile menu styles */
#mobile-menu {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Navigation link hover effects */
.mobile-nav-link:hover,
.desktop-nav-link:hover {
    background-color: #f9fafb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .md\:ml-64 {
        margin-left: 0;
    }
    
    .md\:flex {
        display: none;
    }
    
    .pt-16 {
        padding-top: 4rem;
    }
}

@media (min-width: 769px) {
    .md\:hidden {
        display: none;
    }
    
    .md\:flex {
        display: flex;
    }
    
    .md\:ml-64 {
        margin-left: 16rem;
    }
    
    .md\:pt-0 {
        padding-top: 0;
    }
}

/* Utility classes */
.scale-hover {
    transition: transform 0.3s;
}

.scale-hover:hover {
    transform: scale(1.05);
}

.aspect-video {
    aspect-ratio: 16/9;
}

.menu-push {
    transition: transform 0.3s ease-in-out;
}

.writing-vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.content-auto {
    content-visibility: auto;
}

.dropdown-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Media queries */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:h-14 {
        height: 3.5rem;
    }

    .md\:text-base {
        font-size: 1rem;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile styles for footer */
@media (max-width: 767px) {
    footer {
        padding-top: 0.75rem !important;
        padding-bottom: 1rem !important;
    }
    
    #video-container {
        margin-bottom: 6rem !important;
    }
    
    footer .space-y-4 > li {
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    footer .space-y-4 {
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    footer a {
        font-size: 0.875rem !important;
    }
    
    footer .gap-10 {
        gap: 0.5rem !important;
    }
}