@import url("i18n_language_switcher.css");
/* =========================================================
   GLOBAL PORTAL LAYOUT — Cybersecurity Check-up AI
   ========================================================= */

:root {
    --brand-primary: #123b63;
    --brand-primary-dark: #0b2946;
    --brand-accent: #1f7ae0;
    --brand-bg: #f4f7fb;
    --brand-text: #172033;
    --brand-muted: #667085;
    --brand-border: #dfe5ec;
    --brand-white: #ffffff;
    --brand-success: #198754;
    --brand-danger: #c0392b;
    --shadow-sm: 0 2px 10px rgba(16, 24, 40, .06);
    --shadow-md: 0 8px 30px rgba(16, 24, 40, .09);
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--brand-bg);
    color: var(--brand-text);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--brand-white);
    border-bottom: 1px solid var(--brand-border);
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    width: min(1400px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--brand-text);
    text-decoration: none;
    min-width: 270px;
}

.brand__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 9px;
}

.brand__mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 800;
    font-size: 21px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__text strong {
    font-size: 15px;
}

.brand__text small {
    margin-top: 4px;
    color: var(--brand-muted);
    font-size: 11px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
}

.site-nav a {
    color: var(--brand-muted);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--brand-primary);
    background: #eef4fa;
}

.site-header__account {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-name {
    color: var(--brand-muted);
    font-size: 13px;
}

.btn-small {
    padding: 8px 12px !important;
    font-size: 13px !important;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--brand-border);
    color: var(--brand-primary);
}

.site-footer {
    margin-top: 50px;
    background: var(--brand-primary-dark);
    color: rgba(255,255,255,.9);
}

.site-footer__inner {
    width: min(1400px, calc(100% - 32px));
    min-height: 110px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.site-footer__inner > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.site-footer__inner strong {
    font-size: 14px;
}

.site-footer__inner span {
    font-size: 12px;
    color: rgba(255,255,255,.68);
}

.site-footer__legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

@media (max-width: 900px) {
    .site-header__inner {
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 12px;
    }

    .brand {
        min-width: 0;
        flex: 1;
    }

    .site-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 3px;
    }

    .site-header__account {
        margin-left: auto;
    }

    .site-footer__inner {
        padding: 25px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__legal {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .site-header__inner,
    .site-footer__inner {
        width: min(100% - 20px, 1400px);
    }

    .brand__text small {
        display: none;
    }

    .brand__text strong {
        font-size: 13px;
    }

    .brand__logo,
    .brand__mark {
        width: 40px;
        height: 40px;
    }

    .account-name {
        display: none;
    }
}

/* Layout integration: shared header/footer on every HTML page. */
.site-footer { position: relative; }
body > .auth-page { min-height: calc(100vh - 78px); }
