/* Shared site header + footer chrome, reused on the auth pages (login/signup)
   so they match the public home page. Colors are hard-coded (not CSS
   variables) so this file can be loaded alongside auth.css without its
   --violet-* tokens colliding with the ones defined there. */

.sc-wrap {
    position: relative;
    z-index: 1;
    max-width: 1445px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Header ---------- */
.sc-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 0;
    background: #fff;
}
.sc-nav-shell {
    position: relative;
    z-index: 30;
    background: #fff;
    box-shadow: 0 2px 14px -10px rgba(16, 32, 114, 0.25);
    border-bottom: 1px solid #e6e1fd;
}
.sc-brand {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 800;
    font-size: 19px;
    color: #131c3a;
    text-decoration: none;
}
.sc-brand-mark {
    width: 38px;
    height: 38px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.sc-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5b6584;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 9px 2px;
}
.sc-nav-link:hover { color: #4c3df0; }

.sc-nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}
.sc-save-exit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #131c3a;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 16px;
    border: 1.5px solid #e6e1fd;
    border-radius: 999px;
    transition: border-color .15s ease;
}
.sc-save-exit:hover { border-color: #5b4bff; }
.sc-nav-divider {
    width: 1px;
    height: 22px;
    background: #e6e1fd;
    flex-shrink: 0;
}
.sc-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(160deg, #5b4bff, #3d2fd1);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 20px -10px rgba(91, 75, 255, 0.6);
    transition: transform .15s ease;
}
.sc-nav-cta:hover { transform: translateY(-1px); }

/* Account menu */
.sc-user-menu { position: relative; }
.sc-user-menu summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid #e6e1fd;
    background: #fff;
}
.sc-user-menu summary::-webkit-details-marker { display: none; }
.sc-user-menu-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e6e1fd;
    color: #3d2fd1;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sc-user-menu-name {
    font-weight: 600;
    font-size: 14px;
    color: #131c3a;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sc-user-menu-chevron { color: #5b6584; display: flex; }
.sc-user-menu[open] .sc-user-menu-chevron { transform: rotate(180deg); }
.sc-user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e6e1fd;
    border-radius: 14px;
    box-shadow: 0 20px 40px -20px rgba(16, 32, 114, 0.35);
    padding: 8px;
    min-width: 170px;
    z-index: 20;
}
.sc-user-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    color: #131c3a;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 10px;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
}
.sc-user-menu-item:hover { background: #f3f1ff; }
.sc-user-menu-logout-form { margin: 0; }

/* ---------- Footer ---------- */
.sc-footer {
    border-top: 1px solid #e6e1fd;
    background: #fff;
    padding: 56px 0 30px;
}
.sc-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 40px;
}
@media (max-width: 700px) {
    .sc-footer-grid { grid-template-columns: 1fr 1fr; }
}
.sc-footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 12px; text-decoration: none; color: #131c3a; }
.sc-footer-tagline { font-size: 13.5px; color: #5b6584; margin: 0 0 18px; max-width: 230px; line-height: 1.55; }
.sc-footer-social { display: flex; gap: 10px; }
.sc-footer-social a {
    width: 34px; height: 34px; border-radius: 50%;
    background: #f3f1ff;
    color: #4c3df0;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: background .15s ease;
}
.sc-footer-social a:hover { background: #e6e1fd; }
.sc-footer-col h4 { font-size: 13.5px; font-weight: 800; margin: 0 0 16px; color: #131c3a; }
.sc-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.sc-footer-col a { color: #5b6584; text-decoration: none; font-size: 14px; }
.sc-footer-col a:hover { color: #4c3df0; }
.sc-footer-bottom {
    border-top: 1px solid #e6e1fd;
    padding-top: 24px;
    text-align: center;
    color: #5b6584;
    font-size: 13px;
}

.sc-footer--minimal { padding: 22px 0; }
.sc-footer--minimal .sc-footer-bottom { border-top: none; padding-top: 0; }
