/* Topbar Styles */
.topbar {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.topbar .container {
    position: relative;
}

.topbar-content {
    position: relative;
}

.topbar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.topbar a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Contact Info */
.topbar-contact {
    min-width: 0;
}

.topbar-contact a {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
}

.topbar-contact i {
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
    margin-right: 0.25rem;
    color: var(--primary-color);
}

/* Social Links */
.topbar-social {
    min-width: 0;
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin: 0 0.125rem;
}

.topbar-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(231, 60, 126, 0.4);
}

.topbar-social i {
    font-size: 0.875rem;
}

/* Quick Links */
.topbar-links {
    min-width: 0;
}

.topbar-links a {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
}

.topbar-links i {
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
    margin-right: 0.25rem;
    color: var(--primary-color);
}

/* Mobile-specific styles */
.topbar-mobile-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 40px;
    min-height: 40px;
    touch-action: manipulation;
}

.topbar-mobile-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(231, 60, 126, 0.4);
}

.topbar-mobile-link i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 0.25rem;
}

.topbar-mobile-link span {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Live status indicator */
.topbar-live-status {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.topbar-live-status i {
    font-size: 0.75rem;
    color: var(--danger-color);
    animation: blink 1.5s infinite;
    margin-right: 0.5rem;
}

.topbar-live-status.active i {
    color: var(--success-color);
}

.topbar-live-status span {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced mobile responsiveness */
@media (max-width: 991.98px) {
    .topbar {
        font-size: 0.8125rem;
        padding: 0.25rem 0;
    }

    .topbar-social a {
        width: 36px;
        height: 36px;
        margin: 0 0.25rem;
    }

    .topbar-mobile-link {
        min-width: 44px;
        min-height: 44px;
        margin: 0 0.25rem;
    }

    .topbar-mobile-link i {
        font-size: 1.125rem;
    }
}

@media (max-width: 767.98px) {
    .topbar {
        font-size: 0.8125rem;
        padding: 0.5rem 0;
    }

    .topbar-social a {
        width: 40px;
        height: 40px;
        margin: 0 0.25rem;
    }

    .topbar-social i {
        font-size: 1rem;
    }

    .topbar-mobile-link {
        min-width: 48px;
        min-height: 48px;
        margin: 0 0.25rem;
    }

    .topbar-mobile-link i {
        font-size: 1.25rem;
    }

    .topbar-mobile-link span {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .topbar {
        padding: 0.75rem 0;
    }

    .topbar-mobile-link {
        border-radius: 12px;
        padding: 0.75rem;
    }

    .topbar-mobile-link span {
        display: none !important;
    }

    .topbar-mobile-link i {
        margin-right: 0;
        font-size: 1.25rem;
    }

    .topbar-social a {
        width: 44px;
        height: 44px;
    }

    .topbar-social i {
        font-size: 1.125rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .topbar a,
    .topbar-mobile-link,
    .topbar-social a {
        transition: none;
    }

    .topbar-live-status i {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .topbar {
        border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    }

    .topbar a {
        color: white;
    }

    .topbar-mobile-link,
    .topbar-social a {
        background-color: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}
