/* ═══════════════════════════════════════════════════════════════════════════
   site.css — Brněnské Tlapky
   The shared nav (partials/nav.php) and footer (partials/footer.php).
   Loaded on every public page, AFTER the page's own stylesheet, so this file
   is the one place their look is decided. Colours come from theme.css /
   data/themes.css like everything else.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── NAV ── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(14,12,10,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(.75rem, 2.5vw, 2rem);
    z-index: 100;
}
.site-nav .nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-logo);
    aspect-ratio: 1/1;
    text-decoration: none;
    flex: none;
}
/* the hover glow comes from theme.css (.nav-logo) */
.site-nav .nav-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem .6rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

/* the profile picture */
.site-nav .nav-links a.nav-avatar {
    padding: 0;
    margin-left: .3rem;
    width: calc(var(--nav-h) - 22px);
    height: calc(var(--nav-h) - 22px);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}
.site-nav .nav-links a.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
    border-radius: 0;
    margin: 0;
    max-height: none;
}
.site-nav .nav-links a.nav-avatar:hover,
.site-nav .nav-links a.nav-avatar.active { border-color: var(--accent); }

@media (max-width: 420px) {
    .site-nav .nav-links { gap: .1rem; }
    .site-nav .nav-links a { font-size: .8rem; padding: .4rem .4rem; letter-spacing: 0; }
}

/* ── FOOTER ── */
.site-footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    margin-top: auto;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--text); }
.site-footer article {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.site-footer .footerOdkazi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 160px;
}
.site-footer .footerOdkazi a {
    margin: 0.1rem;
    color: var(--text);
    display: flex; justify-content: center; align-items: center;
    height: 32px; width: 32px;
    filter: drop-shadow(1.5px 1.5px 1.5px #ccc9);
    background: transparent;
    border-radius: 8px;
}
.site-footer .footerOdkazi a svg { width: 22px; height: 22px; }
.site-footer .footerTexti {
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    gap: 0.25rem;
}
.site-footer .footerTexti a { font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.site-footer .footerTexti a:hover { color: var(--accent-ink); }

/* The name stays Fuzzzy lime in every colour scheme (rainbow included). */
.fuzzz, .site-footer a.fuzzz { color: #86e824; }
