/* ========================================
   TOP BAR STYLES
   ======================================== */

.topbar {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 3px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.topbar-item i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.topbar-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.topbar-item a:hover {
    color: var(--secondary-color);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.topbar-address {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
}

.topbar-address i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.topbar-address span {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: #565859;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .topbar-content {
        flex-direction: column;
        gap: 10px;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .topbar-item {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 10px;
        justify-content: center;
    }

    .topbar-address {
        font-size: 0.8rem;
    }

    .topbar-address span {
        max-width: 150px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 8px 0;
        font-size: 0.8rem;
    }

    .topbar-content {
        gap: 8px;
    }

    .topbar-left,
    .topbar-right {
        gap: 10px;
    }

    .topbar-item {
        gap: 5px;
        font-size: 0.75rem;
    }

    .topbar-item i {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 8px;
    }

    .topbar-address {
        font-size: 0.75rem;
    }

    .topbar-address span {
        max-width: 120px;
    }

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