/* Global Header & Nav Styles for granatellitales ecosystem */

nav {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nav-bg);
}

nav ul {
    padding: 0;
    list-style: none;
    background: var(--nav-bg);
    text-align: center;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: var(--fg);
    padding: 10px 15px;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
    line-height: 1.6; /* Explicit line-height for consistency */
}

nav ul li a:hover {
    background: var(--header-bg);
    color: var(--accent);
}

header {
    background: var(--header-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--accent);
    min-height: 72px;
    box-sizing: border-box;
    justify-content: center;
}

.header-clock {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--fg);
    font-family: monospace;
    text-align: center;
}

@keyframes flash-blue {
    0%, 45% { color: var(--accent); }
    50% { color: var(--accent-2, var(--accent)); }
    55%, 95% { color: var(--accent-2, var(--accent)); }
    100% { color: var(--accent); }
}

.flash-chunk {
    display: inline-block !important;
    white-space: pre !important;
    /* Split shorthand to allow JS to set animation-delay */
    animation-name: flash-blue !important;
    animation-duration: 20s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: ease-in-out !important;
    transition: color 2s ease !important;
}

@media (max-width: 400px) {
    header {
        padding: 15px 10px;
    }
    .header-clock {
        font-size: 0.85rem;
    }
}

footer {
    text-align: center;
    padding: 10px;
    background: var(--nav-bg);
    color: var(--fg);
    position: fixed;
    width: 100%;
    bottom: 0;
    box-sizing: border-box;
    border-top: 1px solid var(--header-bg);
    z-index: 100;
}
