/* Public site chrome — header, footer, mobile menu (Django SSR pages). */

.seo-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: linear-gradient(to right, #000033, #000080, #0000a8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px -8px rgba(0, 0, 80, 0.6);
    color: #fff;
}

.seo-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 1280px;
    min-height: 65px;
    height: 65px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.seo-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    min-width: 0;
}

.seo-logo:hover {
    text-decoration: none;
    color: inherit;
}

.seo-logo-img,
.seo-logo svg.seo-logo-img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: block;
}

.seo-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.seo-brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.seo-brand-domain {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.seo-nav {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 1.25rem;
    min-width: 0;
}

.seo-nav a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.seo-nav a:hover,
.seo-nav a.is-active {
    color: #fff;
}

.seo-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.seo-link-login {
    display: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
}

.seo-link-login:hover {
    color: #fff;
}

.seo-btn-register,
.seo-btn-dashboard {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.25;
    box-sizing: border-box;
}

.seo-btn-register {
    background: #ffc107;
    color: #000080;
}

.seo-btn-register:hover {
    background: #ffcd39;
    color: #000080;
}

.seo-btn-dashboard {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.seo-btn-dashboard:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.seo-menu-toggle,
.seo-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
}

.seo-menu-toggle:hover,
.seo-menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.seo-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.seo-mobile-menu[hidden] {
    display: none !important;
}

.seo-mobile-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
}

.seo-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 100%);
    height: 100%;
    background: #fff;
    color: #0f172a;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
}

.seo-mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
}

.seo-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.seo-mobile-nav a {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
}

.seo-mobile-nav a:hover,
.seo-mobile-nav a.is-active {
    background: #f1f5f9;
    color: #000080;
}

.seo-mobile-auth {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.seo-mobile-login {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1.5px solid #000080;
    color: #000080;
    font-weight: 700;
    text-decoration: none;
}

.seo-mobile-auth .seo-btn-register,
.seo-mobile-auth .seo-btn-dashboard {
    display: flex;
    width: 100%;
}

body.seo-menu-open {
    overflow: hidden;
}

body.is-logged-in .seo-link-login,
body.is-logged-in .seo-btn-register,
body.is-logged-in .seo-mobile-login,
body.is-logged-in .seo-mobile-auth .seo-btn-register {
    display: none !important;
}

body.is-logged-in .seo-btn-dashboard,
body.is-logged-in .seo-mobile-auth .seo-btn-dashboard {
    display: inline-flex !important;
}

body:not(.is-logged-in) .seo-auth-user {
    display: none !important;
}

@media (min-width: 990px) {
    .seo-nav {
        display: flex;
    }

    .seo-link-login,
    .seo-btn-register,
    .seo-btn-dashboard {
        display: inline-flex;
    }

    .seo-menu-toggle {
        display: none;
    }

    .seo-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 989px) {
    .seo-logo-text {
        display: none;
    }
}

@media (max-width: 420px) {
    .seo-header-inner {
        padding: 0 1rem;
    }
}

/* Footer */
.seo-footer {
    background: linear-gradient(145deg, #000033 0%, #000066 100%);
    color: rgba(255, 255, 255, 0.85);
    margin-top: auto;
}

.seo-footer-grid {
    display: grid;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

@media (min-width: 768px) {
    .seo-footer-grid {
        grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    }
}

.seo-footer-brand .seo-logo {
    margin-bottom: 1rem;
}

.seo-footer-tagline {
    margin: 0 0 1rem;
    max-width: 22rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.seo-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.seo-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
}

.seo-social-btn svg {
    width: 18px;
    height: 18px;
}

.seo-footer-col {
    border: 0;
}

.seo-footer-label {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    list-style: none;
    cursor: default;
}

.seo-footer-label::-webkit-details-marker {
    display: none;
}

.seo-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.seo-footer-links li + li {
    margin-top: 0.55rem;
}

.seo-footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.9375rem;
}

.seo-footer-links a:hover {
    color: #fff;
}

.seo-footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.seo-footer-bar-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 768px) {
    .seo-footer-bar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.seo-footer-bar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.seo-footer-bar-meta a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.seo-footer-bar-meta a:hover {
    color: #fff;
}
