/* static/css/global.css */

/* --- Global Resets & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll; /* Always show vertical scrollbar to prevent layout shifts */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0d0d0d; /* Near black */
    color: #e0e0e0; /* Light grey for text */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #c0392b; /* Dark Red Accent */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e74c3c; /* Lighter Dark Red on hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: #1a1a1a; /* Slightly lighter black for header */
    padding: 1rem 0;
    border-bottom: 2px solid #c0392b; /* Dark Red Accent border */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container { /* Shared by both index.html and yt_downloader.html headers */
    display: flex;
    justify-content: flex-start; /* Changed from space-between for clarity with single main item */
    align-items: center;
}

.logo { /* Targeting the H1 element */
    margin: 0; /* Explicitly remove any default H1 margin */
    padding: 0; /* Explicitly remove any default H1 padding */
}

.logo a {
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.8rem;
    font-weight: 700;
    color: #f0f0f0; 
    text-decoration: none;
    display: inline-block; /* Helps contain text and prevent wrapping issues affecting width */
    margin: 0; /* Ensure the anchor itself has no margin */
    padding: 0; /* Ensure the anchor itself has no padding */
}

.logo .logo-key {
    color: #c0392b; 
}

.logo .logo-menu {
    color: #DAA520; 
    font-size: 0.9em; 
}

/* Main navigation - currently commented out in HTML, but styles are here if re-enabled */
.main-nav a {
    color: #cccccc;
    margin-left: 20px;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #DAA520; 
    border-bottom-color: #DAA520;
}

/* --- Main Content Area --- */
.site-main { 
    flex-grow: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* --- Footer --- */
.site-footer.main-footer.simple-footer { 
    background-color: #1a1a1a;
    color: #777777;
    padding: 1rem 0; 
    margin-top: auto; 
    border-top: 1px solid #333;
}

.footer-container-simple { 
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}

.copyright-year { 
    font-size: 0.9rem;
    color: #777777;
}

/* --- Utility Classes (Optional) --- */
.text-center {
    text-align: center;
}

/* --- Responsive Adjustments for Global Elements --- */
@media (max-width: 768px) {
    .logo a {
        font-size: 1.5rem;
    }
    .main-nav { 
        display: none; 
    }
    .footer-container-simple {
        justify-content: center; 
    }
    .copyright-year {
        text-align: center;
    }
}
