/* ============================================================
   HEADER — ShopGP3 App
   Refinamento profissional de layout, alinhamento e contraste
   ============================================================ */

/* Variáveis locais para harmonizar com o layout global */
:root {
    --layout-padding: 12px;      /* padding horizontal padrão */
    --header-top-padding: 14px;  /* mais espaçamento do topo */
    --header-bottom-padding: 10px;
    --header-gradient-strength: 0.78; /* reduz intensidade do blur */
}

/* Estrutura principal */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;

    /* Gradiente mais suave e legível */
    background:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0.95),
            rgba(2, 6, 23, var(--header-gradient-strength)),
            rgba(2, 6, 23, 0.0)
        );

    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);

    padding:
        var(--header-top-padding)
        var(--layout-padding)
        var(--header-bottom-padding);

    border-bottom: 1px solid rgba(15, 23, 42, 0.65);
}

/* Container interno – alinhamento perfeito com o grid principal */
.app-header__top {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--layout-padding);

    display: flex;
    align-items: center; 
    justify-content: space-between;
}

/* Logo alinhado no eixo */
.app-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;     /* 🔥 Centraliza o slogan alinhado ao logo */
    justify-content: center; /* garante equilíbrio vertical */
    text-align: center;      /* slogan alinhado embaixo */
}

.app-logo__row {
    display: flex;
    align-items: center;
    justify-content: center; /* agora centraliza perfeitamente */
    gap: 8px;
}

.app-logo .icon {
    font-size: 1.35rem;
}

/* Pill de status com alinhamento vertical refinado */
.app-header__pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);

    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);

    margin-top: 2px; /* alinhamento perfeito com o logo */
}

.app-header__pill-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 9999 !important;
}

.app-logo {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Logo principal — Space Grotesk */
.app-logo .text {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    font-size: 1.47rem;
    letter-spacing: 0.03em;
}

/* Slogan */
.app-logo__tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    opacity: 0.92;
    color: rgba(226, 232, 240, 0.88);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

/* Pill */
.app-header__pill {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
}
