/* =============================================================================
   SiM Hub · Branding
   Componentes do logo do produto + pílula "Exclusivo Clínica SiM".
   ============================================================================= */

/* =============================================================================
   LOGO SiM HUB
   ============================================================================= */

.sim-hub-logo {
    display: inline-flex;
    align-items: center;
    color: var(--primary);  /* o currentColor do SVG herda daqui */
    user-select: none;
}

/* Variante inline: símbolo + wordmark lado a lado (header) */
.sim-hub-logo-inline {
    flex-direction: row;
    gap: 9px;
}

.sim-hub-logo-inline .sim-hub-mark {
    width: 28px;
    height: 28px;
}

.sim-hub-logo-inline .sim-hub-wordmark {
    font-size: 1rem;
}

/* Variante stacked: símbolo em cima, wordmark embaixo (login) */
.sim-hub-logo-stacked {
    flex-direction: column;
    gap: clamp(6px, 0.6vw + 3px, 11px);
    margin-bottom: var(--space-3);
}

.sim-hub-logo-stacked .sim-hub-mark {
    width: clamp(34px, 2.5vw + 14px, 48px);
    height: clamp(34px, 2.5vw + 14px, 48px);
}

.sim-hub-logo-stacked .sim-hub-wordmark {
    font-size: clamp(1.1rem, 0.8vw + 0.6rem, 1.6rem);
}

/* Símbolo orbital */
.sim-hub-mark {
    display: block;
    flex-shrink: 0;
    color: var(--primary);
}

/* Núcleo interno do símbolo — usa cor de bg pra "furo" */
.sim-hub-mark-core {
    fill: var(--bg-elev-1);
    transition: fill var(--transition-base);
}

body.light-mode .sim-hub-mark-core {
    fill: #FFFFFF;
}

/* Wordmark "sim hub" — sim em texto base, hub em verde */
.sim-hub-wordmark {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1;
}

.sim-hub-wordmark-hub {
    color: var(--primary);
    font-weight: 700;
}

/* =============================================================================
   EXCLUSIVE BADGE — "Exclusivo Clínica SiM"
   ============================================================================= */

.exclusive-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-pill);
    /* anima só interação (hover); a cor/bg do tema troca instantâneo pra não "atrasar" no toggle */
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

body.light-mode .exclusive-badge {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
}

.exclusive-badge-mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--clinica-green);
    box-shadow: 0 2px 6px rgba(29, 212, 95, 0.25);
}

.exclusive-badge-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exclusive-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.exclusive-badge-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--text-muted);
}

.exclusive-badge-client {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.005em;
}

/* Posicionamento da pílula no login (canto superior esquerdo, flutuante) */
.exclusive-badge-floating {
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    z-index: 3;
    animation: badgeFloat var(--transition-slow) both;
    animation-delay: 200ms;
}

@keyframes badgeFloat {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Variação compacta usada no header pós-login */
.exclusive-badge-compact {
    padding: 3px 11px 3px 3px;
    gap: 7px;
}

.exclusive-badge-compact .exclusive-badge-mark {
    width: 20px;
    height: 20px;
}

.exclusive-badge-compact .exclusive-badge-label {
    font-size: 0.52rem;
}

.exclusive-badge-compact .exclusive-badge-client {
    font-size: 0.72rem;
}

/* =============================================================================
   AJUSTES DO HEADER PÓS-LOGIN
   ============================================================================= */

/* O header pós-login agora tem 3 colunas: brand · exclusivo · user */
.home-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-4);
}

.home-brand {
    justify-self: start;
}

.home-header-center {
    justify-self: center;
}

.home-header-right {
    justify-self: end;
}

@media (max-width: 880px) {
    .home-header-inner {
        grid-template-columns: 1fr auto;
    }
    .home-header-center {
        display: none;
    }
}
