/* css/microheader.css
 * sabermeuip.com.br - microheader preto 30px fixo no topo.
 * Acima do .main-header. Mostra clock, IP detectado, links e theme toggle.
 */

.smi-mh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 10010;
    background: #000;
    color: #f5f5f7;
    font-size: 0.75rem;
    line-height: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.smi-mh-inner {
    max-width: 1700px;
    margin: 0 auto;
    height: 100%;
    padding: 0 clamp(16px, 2vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.smi-mh-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.smi-mh-clock {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.smi-mh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.6);
    animation: smiMhPulse 2s ease-in-out infinite;
}

@keyframes smiMhPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.smi-mh-center {
    flex: 0 1 auto;
}

.smi-mh-center strong {
    color: #fff;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-weight: 600;
}

.smi-mh-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.smi-mh-link:hover,
.smi-mh-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.smi-mh-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.18);
}

/* Empurra o conteudo abaixo do microheader. main-header (sticky) recebe top:30px. */
body { padding-top: 30px; }
.main-header { top: 30px !important; }

@media (max-width: 720px) {
    .smi-mh-inner { padding: 0 12px; gap: 12px; }
    .smi-mh-hide-sm { display: none !important; }
    .smi-mh-center { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .smi-mh-center { display: none; }
}
