/* Template stylesheet: resources/views/components/app-layout.blade.php */

@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("https://enterprise.semrush.com/_next/static/media/7178b3e590c64307-s.11.cyxs5p-0z~.woff2") format("woff2");
}

.app-shell-header,
.app-shell-header *,
main,
main * {
    font-family: "Geist", "Segoe UI", Arial, sans-serif;
}

body {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 22%),
        linear-gradient(180deg, #f6f3ee 0%, #efebe4 48%, #ebe6dd 100%);
    color: #111;
}

.app-shell-header {
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 18%),
        linear-gradient(180deg, rgba(247, 244, 239, 0.92) 0%, rgba(243, 238, 231, 0.88) 100%);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.03);
}

.app-shell-inner {
    display: grid;
    gap: 0.9rem;
}

.app-shell-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.app-shell-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #111;
    text-decoration: none;
}

.app-shell-brand:hover {
    color: #111;
    text-decoration: none;
}

.app-shell-brand-image {
    display: block;
    width: 92px;
    height: auto;
}

.app-shell-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.app-shell-brand-title {
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111;
}

.app-shell-brand-subtitle {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.46);
}

.app-shell-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.45rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.app-shell-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.2rem 0;
    color: rgba(17, 17, 17, 0.72);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1;
    font-weight: 500;
    transition: color .18s ease, opacity .18s ease, transform .18s ease;
}

.app-shell-nav-link:hover {
    color: #111;
    text-decoration: none;
    transform: translateY(-1px);
}

.app-shell-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.28rem;
    height: 1px;
    background: rgba(17, 17, 17, 0.16);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .18s ease, background-color .18s ease;
}

.app-shell-nav-link:hover::after {
    transform: scaleX(1);
}

.app-shell-nav-link.is-active {
    color: #111;
    font-weight: 600;
}

.app-shell-nav-link.is-active::after {
    transform: scaleX(1);
    background: rgba(17, 17, 17, 0.7);
}

.app-shell-logout {
    min-height: 3rem;
    padding: 0.7rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #171717 0%, #101010 100%);
    color: #f7f4ef;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.12);
}

.app-shell-platform-switcher {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.app-shell-platform-label,
.app-shell-platform-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(17, 17, 17, 0.48);
}

.app-shell-platform-select {
    min-height: 2.8rem;
    min-width: 300px;
    max-width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: rgba(17, 17, 17, 0.78);
    font-size: 0.84rem;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.03);
}

.app-shell-platform-text {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

main.mx-auto.max-w-6xl {
    max-width: 1380px;
}

@media (max-width: 980px) {
    .app-shell-topbar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .app-shell-brand {
        align-items: flex-start;
    }

    .app-shell-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
        scrollbar-width: none;
    }

    .app-shell-nav::-webkit-scrollbar {
        display: none;
    }

    .app-shell-nav-link,
    .app-shell-logout {
        flex: 0 0 auto;
    }

    .app-shell-platform-switcher {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .app-shell-header .app-shell-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .app-shell-brand {
        gap: 0.75rem;
        align-items: center;
    }

    .app-shell-brand-image {
        width: 70px;
    }

    .app-shell-brand-title {
        font-size: 0.84rem;
    }

    .app-shell-brand-subtitle {
        font-size: 0.54rem;
        letter-spacing: 0.18em;
    }

    .app-shell-nav {
        gap: 0.9rem;
    }

    .app-shell-nav-link {
        min-height: 2rem;
        font-size: 0.78rem;
    }

    .app-shell-logout {
        min-height: 2.75rem;
        padding: 0.68rem 1.05rem;
        font-size: 0.66rem;
        letter-spacing: 0.18em;
    }
}
