/* ChileHero - Background Video and Logo Styles */

@font-face {
    font-family: 'VCR';
    src: url('../fonts/VCR.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --text-primary: #f8fafc;
}

body {
    background: var(--bg-gradient);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    overflow: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Video Background Wrapper */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: transparent;
}

.video-bg-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.3; /* Video background opacity */
    filter: brightness(0.8) contrast(1.1);
    pointer-events: none;
}

/* Page Overlay for better contrast */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

/* Top Right Logo Container */
.top-right-logo-container {
    position: absolute;
    top: -2rem; /* Pull it up to counteract any transparent padding in the image */
    right: 2rem;
    z-index: 2;
    animation: fadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.top-right-logo-container img.main-logo {
    width: 380px; /* Larger logo */
    max-width: 85vw; /* Responsiveness check */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

/* Bottom Left Navigation */
.bottom-left-nav {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'VCR', Courier, monospace; /* Use custom font VCR.ttf */
    font-size: 1.15rem;
    animation: fadeInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bottom-left-nav .user-greeting {
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}

.bottom-left-nav .nav-link-custom {
    color: #ffffff; /* White text as requested */
    text-decoration: none;
    font-family: 'VCR', Courier, monospace;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.bottom-left-nav .nav-link-custom:hover {
    color: #e2e8f0; /* Soft off-white on hover */
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    transform: translateX(5px); /* Slide slightly to the right */
}

.bottom-left-nav .badge {
    font-size: 0.8rem;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    letter-spacing: 0.05em;
    font-family: 'VCR', Courier, monospace;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-right-logo-container {
        top: -1.5rem;
        right: 1rem;
    }
    .top-right-logo-container img.main-logo {
        width: 250px; /* Slightly smaller for mobile devices */
    }
    .bottom-left-nav {
        bottom: 1.5rem;
        left: 1.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bottom Navigation Downloads List Styling */
.bottom-downloads-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    max-height: 180px;
    overflow-y: auto;
}

/* Custom scrollbar for small list */
.bottom-downloads-list::-webkit-scrollbar {
    width: 4px;
}
.bottom-downloads-list::-webkit-scrollbar-track {
    background: transparent;
}
.bottom-downloads-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.bottom-download-item {
    font-size: 1.15rem;
}

.bottom-download-item a {
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.bottom-left-nav .bottom-download-item .nav-link-custom:hover {
    transform: none; /* Keep links static on hover */
    color: #f87171; /* Accent red hover */
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

.bottom-left-nav .access-info {
    color: #94a3b8; /* Muted slate */
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: inline-block;
}
