/**
 * Single-Source Publishing styles
 */
:root {
    --max-width: 800px;
}

.navbar {
    background-color: var(--background-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    align-items: center;
    display: flex;
    max-width: var(--max-width);
    padding: 1rem;
    margin: 0 auto;
}

.navbar .logo {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    text-decoration: none;
}

.navbar .logo img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar .logo img:hover {
    transform: rotate(360deg);
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.navbar li {
    margin: 0;
}

.navbar a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: var(--button-hover);
}

.navbar a.active {
    background-color: var(--button-hover);
}

/* Ensure footer stays at bottom */
body {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    min-height: 100vh;
    max-width: unset;
}

main {
    flex: 1;
    margin: 0 auto;
    max-width: var(--max-width);
}

/* Footer Styles */
footer {
    background-color: var(--background-alt);
    padding-top: 0;
    width: 100%;
}

/* Ensure footer links are optically non-invasive */
footer a {
    color: var(--text-muted);
    max-width: var(--max-width);
}

.footer-container {
    align-items: center;
    display: flex;
    flex-direction: row;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    gap: 2rem;
    width: 100%;
}

.footer-container > div {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex: 1;
}

.footer-container > div:last-child {
    justify-content: flex-end;
}
