/* Shared app shell, navigation, and footer layout styles. */

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1;
}

.content {
    padding: 1.5rem 1.5rem 3rem;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(246, 241, 231, 0.75);
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Space Grotesk", "Outfit", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--brand-ink);
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.nav-link {
    font-weight: 600;
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    color: var(--ink-muted);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--brand-ink);
    background: rgba(227, 146, 43, 0.15);
}

.nav-link.active {
    color: var(--brand-ink);
    background: rgba(227, 146, 43, 0.25);
}

.secondary-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sub-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    flex-wrap: wrap;
}

.sub-nav-link {
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    color: var(--ink-muted);
    transition: all 0.2s ease;
}

.sub-nav-link:hover {
    color: var(--brand-ink);
    background: rgba(31, 122, 118, 0.12);
}

.sub-nav-link.active {
    color: var(--brand-ink);
    background: rgba(31, 122, 118, 0.2);
}

.header-auth {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

footer {
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.95rem;
    padding: 1rem 1.5rem 2rem;
}

footer p {
    margin-bottom: 0;
}

footer a {
    color: var(--brand-ink);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .header-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand {
        justify-self: center;
    }

    .site-nav {
        justify-content: center;
    }

    .secondary-header-inner {
        justify-content: center;
        padding-bottom: 0.85rem;
    }

    .header-auth {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-nav {
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .nav-link {
        flex: 1 1 auto;
        text-align: center;
    }

    .sub-nav {
        width: 100%;
        justify-content: center;
        border-radius: 18px;
    }

    .sub-nav-link {
        flex: 1 1 auto;
        text-align: center;
    }
}

