/* LinkSocialDO Site Shell V2.0.3
   IMPORTANT: all branded shell overrides live here; custom.css remains untouched.
   Global header + footer for standard application/public pages.
   Namespaced to avoid affecting the landing hero menu and app content. */

:root {
    --ls-shell-ink: #0d2426;
    --ls-shell-muted: #667a7d;
    --ls-shell-primary: #22b9ad;
    --ls-shell-primary-dark: #087f79;
    --ls-shell-soft: #eff9f7;
    --ls-shell-line: rgba(13, 36, 38, .10);
    --ls-shell-dark: #0b292b;
    --ls-shell-dark-2: #0d3839;
}

/* PAGE LAYOUT
   Keep the branded footer attached to the bottom of short pages. */
html {
    min-height: 100%;
}

body:not(.basic-wrapper-body) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:not(.basic-wrapper-body) > main {
    flex: 1 0 auto;
}

/* INTERNAL PAGE SAFE AREA
   Keep application content visually separated from the global header/footer.
   The homepage intentionally does not receive this class. */
.ls-site-main {
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Some legacy views end with full-width buttons/cards. Give them a reliable
   breathing zone before the footer without altering their own grid. */
.ls-site-main > :last-child {
    margin-bottom: 0;
}

body:not(.basic-wrapper-body) > .footer {
    flex: 0 0 auto;
}

/* HEADER */
.ls-site-header {
    position: relative;
    z-index: 1030;
    padding: 14px 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--ls-shell-line);
}

.ls-site-navbar {
    min-height: 58px;
    margin: 0 !important;
    padding: 0;
    background: transparent !important;
}

.ls-site-navbar__inner {
    min-height: 58px;
}

.ls-site-brand {
    display: inline-flex;
    align-items: center;
    margin-right: 2rem;
    color: var(--ls-shell-ink) !important;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -.035em;
}

.ls-site-brand__logo {
    width: auto;
    max-width: 165px;
    max-height: 38px;
}

.ls-site-nav {
    align-items: center;
    gap: .15rem;
}

.ls-site-nav .nav-link {
    position: relative;
    padding: .65rem .78rem !important;
    color: #486064 !important;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 700;
    transition: color .18s ease, background .18s ease;
}

.ls-site-nav .nav-link:hover,
.ls-site-nav .nav-link:focus {
    color: var(--ls-shell-primary-dark) !important;
    background: var(--ls-shell-soft);
}

.ls-site-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
    margin-left: 1.25rem;
}

.ls-site-login,
.ls-site-dashboard-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    min-height: 40px;
    padding: .55rem .9rem;
    border-radius: 11px;
    color: #284a4e;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.ls-site-login:hover,
.ls-site-dashboard-link:hover {
    color: var(--ls-shell-primary-dark);
    background: var(--ls-shell-soft);
    transform: translateY(-1px);
}

.ls-site-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .62rem 1rem;
    border: 1px solid var(--ls-shell-primary);
    border-radius: 12px;
    background: var(--ls-shell-primary);
    box-shadow: 0 9px 22px rgba(34, 185, 173, .18);
    color: #fff !important;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ls-site-register:hover {
    background: #169f95;
    border-color: #169f95;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(34, 185, 173, .24);
}

.ls-site-toggler {
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid var(--ls-shell-line) !important;
    border-radius: 12px;
    background: #fff;
    box-shadow: none !important;
}

.ls-site-toggler__lines {
    width: 18px;
    margin: 0 auto;
    display: grid;
    gap: 4px;
}

.ls-site-toggler__lines i {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--ls-shell-ink);
}

.ls-site-user__toggle {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .32rem .58rem .32rem .34rem;
    border: 1px solid var(--ls-shell-line);
    border-radius: 13px;
    color: var(--ls-shell-ink) !important;
    background: #fff;
    text-decoration: none !important;
    font-size: .84rem;
    font-weight: 800;
}

.ls-site-user__avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
}

.ls-site-user__menu {
    width: 260px;
    margin-top: .65rem;
    padding: .55rem;
    border: 1px solid var(--ls-shell-line);
    border-radius: 16px;
    box-shadow: 0 22px 55px rgba(11, 49, 52, .14);
}

.ls-site-user__menu .dropdown-item {
    padding: .64rem .7rem;
    border-radius: 9px;
    font-size: .82rem;
}

.ls-site-user__menu .dropdown-item:hover {
    background: var(--ls-shell-soft);
}

/* FOOTER */
.footer {
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.ls-site-footer {
    position: relative;
    overflow: hidden;
    padding: 72px 0 26px;
    background:
        radial-gradient(circle at 85% 5%, rgba(44, 203, 190, .12), transparent 34%),
        linear-gradient(135deg, var(--ls-shell-dark) 0%, var(--ls-shell-dark-2) 100%);
    color: #ffffff;
}

.ls-site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,.08);
}

.ls-site-footer__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
    gap: 5rem;
    padding-bottom: 48px;
}

.ls-site-footer__brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.15rem;
    color: #fff !important;
    font-size: 1.45rem;
    font-weight: 850;
    letter-spacing: -.04em;
    text-decoration: none !important;
}

.ls-site-footer__logo {
    width: auto;
    max-width: 180px;
    max-height: 42px;
    filter: brightness(0) invert(1);
}

.ls-site-footer__brand-col p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: .95rem;
    line-height: 1.75;
}

.ls-site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.55rem;
}

.ls-site-footer__socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    background: rgba(255,255,255,.045);
    color: #c6dcdb;
    text-decoration: none !important;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}

.ls-site-footer__socials a:hover {
    color: #fff;
    border-color: rgba(44, 203, 190, .5);
    background: rgba(44, 203, 190, .12);
    transform: translateY(-2px);
}

.ls-site-footer__links-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.ls-site-footer__group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .72rem;
}

.ls-site-footer__group h6 {
    margin: 0 0 .35rem;
    color: #fff;
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ls-site-footer__group a {
    color: #ffffff !important;
    font-size: .88rem;
    text-decoration: none !important;
    transition: color .18s ease, transform .18s ease;
}

.ls-site-footer__group a:hover {
    color: #fff;
    transform: translateX(2px);
}

.ls-site-footer__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.ls-site-footer__copyright {
    color: rgba(255,255,255,.72);
    font-size: .79rem;
}

.ls-site-footer__controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}

.ls-footer-control {
    padding: .35rem 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff !important;
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
}

.ls-footer-control:hover,
.ls-footer-control:focus {
    color: #fff;
    outline: 0;
}

/* Strong footer contrast. The original 66biolinks custom.css contains
   more-specific footer selectors, so keep the branded shell authoritative. */
.footer .ls-site-footer,
.footer .ls-site-footer__brand,
.footer .ls-site-footer__group h6 {
    color: #ffffff !important;
}

.footer .ls-site-footer__group a:not(.dropdown-item),
.footer .ls-site-footer__group a:hover:not(.dropdown-item),
.footer .ls-site-footer__socials a:not(.dropdown-item),
.footer .ls-site-footer__socials a:hover:not(.dropdown-item),
.footer .ls-footer-control,
.footer .ls-footer-control:hover,
.footer .ls-footer-control:focus {
    color: #ffffff !important;
}

.footer .ls-site-footer__brand-col p {
    color: rgba(255,255,255,.78) !important;
}

.footer .ls-site-footer__copyright {
    color: rgba(255,255,255,.72) !important;
}

/* dark theme: header remains deliberately elevated but blends with the app */
.c_darkmode .ls-site-header,
[data-theme-style="dark"] .ls-site-header {
    background: rgba(19, 25, 27, .97);
    border-bottom-color: rgba(255,255,255,.08);
}

.c_darkmode .ls-site-brand,
[data-theme-style="dark"] .ls-site-brand,
.c_darkmode .ls-site-user__toggle,
[data-theme-style="dark"] .ls-site-user__toggle {
    color: #f3f8f7 !important;
}

.c_darkmode .ls-site-nav .nav-link,
[data-theme-style="dark"] .ls-site-nav .nav-link,
.c_darkmode .ls-site-login,
[data-theme-style="dark"] .ls-site-login,
.c_darkmode .ls-site-dashboard-link,
[data-theme-style="dark"] .ls-site-dashboard-link {
    color: #c0d0cf !important;
}

.c_darkmode .ls-site-nav .nav-link:hover,
[data-theme-style="dark"] .ls-site-nav .nav-link:hover,
.c_darkmode .ls-site-login:hover,
[data-theme-style="dark"] .ls-site-login:hover,
.c_darkmode .ls-site-dashboard-link:hover,
[data-theme-style="dark"] .ls-site-dashboard-link:hover {
    background: rgba(34,185,173,.10);
    color: #56d8ce !important;
}

.c_darkmode .ls-site-user__toggle,
[data-theme-style="dark"] .ls-site-user__toggle,
.c_darkmode .ls-site-toggler,
[data-theme-style="dark"] .ls-site-toggler {
    background: #171f21;
    border-color: rgba(255,255,255,.09) !important;
}

.c_darkmode .ls-site-toggler__lines i,
[data-theme-style="dark"] .ls-site-toggler__lines i {
    background: #eff7f6;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .ls-site-header { padding: 10px 0; }

    .ls-site-navbar__inner { min-height: 52px; }

    .ls-site-navbar .navbar-collapse {
        margin-top: .8rem;
        padding: .75rem;
        border: 1px solid var(--ls-shell-line);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 20px 45px rgba(13,36,38,.10);
    }

    .ls-site-nav {
        align-items: stretch;
        gap: .15rem;
    }

    .ls-site-nav .nav-link {
        padding: .72rem .8rem !important;
    }

    .ls-site-actions {
        margin: .65rem 0 0;
        padding-top: .75rem;
        border-top: 1px solid var(--ls-shell-line);
        justify-content: stretch;
    }

    .ls-site-login,
    .ls-site-register,
    .ls-site-dashboard-link {
        flex: 1;
    }

    .ls-site-user { flex: 1; }
    .ls-site-user__toggle { justify-content: center; }
    .ls-site-user__menu { width: 100%; }

    .c_darkmode .ls-site-navbar .navbar-collapse,
    [data-theme-style="dark"] .ls-site-navbar .navbar-collapse {
        background: #171f21;
        border-color: rgba(255,255,255,.09);
    }

    .ls-site-footer__main {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }
}

@media (max-width: 575.98px) {
    .ls-site-brand { font-size: 1.08rem; }
    .ls-site-brand__logo { max-width: 145px; max-height: 34px; }

    .ls-site-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ls-site-login,
    .ls-site-register,
    .ls-site-dashboard-link {
        width: 100%;
    }

    .ls-site-footer {
        padding: 54px 0 22px;
    }

    .ls-site-footer__main {
        padding-bottom: 34px;
    }

    .ls-site-footer__links-col {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .ls-site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .ls-site-footer__controls {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Internal-page spacing on smaller screens */
@media (max-width: 767.98px) {
    .ls-site-main {
        padding-top: 1.35rem;
        padding-bottom: 2.75rem;
    }
}
