/* PianoTuner shared website shell: common header + footer */
.site-header,
.site-footer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
    color: #f8fafc;
}

.site-header {
    position: relative;
    z-index: 50;
    background: rgba(4, 16, 31, .96);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(1460px, calc(100% - 48px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f8fafc !important;
    text-decoration: none !important;
    flex: 0 0 auto;
}

.site-brand img {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(31, 162, 255, .24);
}

.site-brand__text {
    display: grid;
    gap: 2px;
    line-height: 1.15;
}

.site-brand__text strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.site-brand__text small {
    color: #8fa9c2;
    font-size: 12px;
    font-weight: 500;
}

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

.site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #c8daee !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 650;
    transition: background-color .18s ease, color .18s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    background: rgba(45, 140, 255, .13);
    color: #ffffff !important;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.site-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 750;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.site-action:hover {
    transform: translateY(-1px);
}

.site-action--secondary {
    color: #dbeafe !important;
    background: rgba(15, 23, 42, .58);
}

.site-action--primary {
    color: #ffffff !important;
    border-color: rgba(96, 165, 250, .36);
    background: linear-gradient(135deg, #2d8cff, #126dff);
    box-shadow: 0 8px 24px rgba(18, 109, 255, .22);
}

.site-action--danger {
    color: #fecdd3 !important;
    border-color: rgba(251, 113, 133, .28);
    background: rgba(127, 29, 29, .12);
}

.site-action.is-active {
    border-color: rgba(96, 165, 250, .55);
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, .14);
    background: #040f1d;
}

.site-footer__inner {
    width: min(1460px, calc(100% - 48px));
    min-height: 118px;
    margin: 0 auto;
    padding: 26px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__brand img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.site-footer__brand div {
    display: grid;
    line-height: 1.2;
    gap: 3px;
}

.site-footer__brand strong {
    color: #ffffff;
    font-size: 16px;
}

.site-footer__brand span,
.site-footer__copy {
    color: #7e92aa;
    font-size: 13px;
}

.site-footer__links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.site-footer__links a {
    color: #9fb5ca !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
}

.site-footer__links a:hover {
    color: #ffffff !important;
}

.home-hero {
    min-height: calc(100vh - 86px) !important;
}

.auth-page .auth-shell {
    min-height: calc(100vh - 204px);
}

@media (max-width: 1080px) {
    .site-header__inner {
        padding: 16px 0;
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .site-header__inner,
    .site-footer__inner {
        width: min(100% - 28px, 1460px);
    }

    .site-header__inner {
        gap: 14px;
    }

    .site-brand__text small {
        display: none;
    }

    .site-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav__link {
        white-space: nowrap;
    }

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

    .site-action {
        padding: 8px 11px;
        font-size: 13px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 20px;
    }

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

@media (max-width: 500px) {
    .site-brand img {
        width: 42px;
        height: 42px;
    }

    .site-brand__text strong {
        font-size: 17px;
    }

    .site-actions {
        gap: 6px;
    }

    .site-action--secondary {
        display: none;
    }
}
