/*
     topbar-modern.css — Estilos da top-bar fixa (barra superior) do site.
     Referência: app/Views/layouts/header.php
*/
/* ==========================================
    TOP BAR - DESIGN MODERNO E PROFISSIONAL
    ========================================== */

:root {
    --topbar-bg: #0f172a;
    --topbar-text: #f1f5f9;
    --topbar-accent: #ffff;
    --topbar-border: rgba(255, 255, 255, 0.08);
    --topbar-hover: rgba(255, 255, 255, 0.1);
}

/* ===== BARRA SUPERIOR ===== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: linear-gradient(180deg, var(--topbar-bg) 0%, rgba(15, 23, 42, 0.98) 100%);
    color: var(--topbar-text);
    z-index: 1100;
    border-bottom: 1px solid var(--topbar-border);
    backdrop-filter: blur(10px);
    padding: 8px 0;
}

.top-bar .container-header {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== WRAPPER PRINCIPAL ===== */
.top-bar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ===== SEÇÃO ESQUERDA ===== */
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.info-item i {
    color: var(--topbar-accent);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.15);
}

.info-text {
    letter-spacing: 0.3px;
}

/* ===== SEÇÃO DIREITA ===== */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
}

/* ===== LINK DE EMAIL ===== */
.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--topbar-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    padding: 6px 10px;
    border-radius: 6px;
}

.contact-link:hover {
    color: var(--topbar-accent);
    background: var(--topbar-hover);
}

.contact-link i {
    color: var(--topbar-accent);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.1);
}

.contact-text {
    letter-spacing: 0.3px;
}

/* ===== DIVISOR ===== */
.social-divider {
    width: 1px;
    height: 24px;
    background: var(--topbar-border);
    margin: 0 8px;
}

/* ===== REDES SOCIAIS ===== */
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--topbar-text);
    text-decoration: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid transparent;
    font-size: 14px;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--topbar-accent) 0%, rgba(37, 99, 235, 0.8) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: var(--topbar-accent);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.social-icon:active {
    transform: translateY(0);
}

/* ===== WHATSAPP ESPECIAL ===== */
.social-icon[href*="wa.me"]:hover {
    background: linear-gradient(135deg, #25d366 0%, #20ba5f 100%);
    border-color: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .top-bar-wrapper {
        gap: 15px;
    }

    .top-bar-left {
        display: none;
    }

    .contact-text {
        display: none;
    }

    .social-divider {
        display: none;
    }

    .social-links {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 6px 0;
    }

    .top-bar-wrapper {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        justify-content: center;
    }

    .top-bar-left {
        width: 100%;
        justify-content: center;
    }

    .top-bar-right {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .info-item {
        font-size: 12px;
    }

    .contact-link {
        font-size: 12px;
        padding: 5px 8px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .top-bar .container-header {
        padding: 0 12px;
    }

    .top-bar-wrapper {
        flex-direction: column;
        gap: 6px;
    }

    .top-bar-left {
        gap: 10px;
        font-size: 11px;
    }

    .info-item {
        font-size: 11px;
        gap: 6px;
    }

    .info-item i {
        font-size: 12px;
    }

    .contact-link {
        font-size: 11px;
        gap: 6px;
        padding: 4px 6px;
    }

    .contact-link i {
        font-size: 12px;
    }

    .social-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-bar {
    animation: slideDown 0.5s ease;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --topbar-bg: #0a0f1f;
        --topbar-text: #e2e8f0;
        --topbar-accent: #3b82f6;
        --topbar-border: rgba(255, 255, 255, 0.05);
        --topbar-hover: rgba(255, 255, 255, 0.08);
    }

    .top-bar {
        background: linear-gradient(180deg, var(--topbar-bg) 0%, rgba(10, 15, 31, 0.98) 100%);
    }
}

/* ===== ACCESSIBILITY ===== */
.social-icon:focus-visible {
    outline: 2px solid var(--topbar-accent);
    outline-offset: 2px;
}

.contact-link:focus-visible {
    outline: 2px solid var(--topbar-accent);
    outline-offset: 2px;
}

/* ===== HOVER STATES ===== */
@media (hover: hover) {
    .info-item {
        cursor: default;
    }

    .contact-link:hover {
        background: var(--topbar-hover);
    }

    .social-icon:hover {
        transform: translateY(-3px);
    }
}