/* ===================================================
   TOPBAR MODERN STYLES - JTL CI Design
   =================================================== */

/* === TOPBAR BASE === */
.topbar-modern {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* === GRADIENT ACCENT BAR === */
.topbar-accent-bar {
    position: relative;
    overflow: hidden;
}

.topbar-accent-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: topbar-accent-shine 3s infinite;
}

@keyframes topbar-accent-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* === TOPBAR NAVIGATION === */
.topbar-nav-modern {
    gap: 0.25rem;
}

/* === TOPBAR LINKS === */
.topbar-link-wrapper {
    display: inline-block;
}

.topbar-link {
    color: #435a6b !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 38px;
}

.topbar-link-text {
    position: relative;
    z-index: 1;
}

.topbar-icon {
    color: #435a6b;
    transition: all 0.3s ease;
}

/* === UNDERLINE ANIMATION === */
.topbar-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFC935 0%, #FF9A26 100%);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px 2px 0 0;
}

.topbar-link:hover .topbar-underline,
.topbar-link:focus .topbar-underline,
.topbar-link.show .topbar-underline {
    width: 80%;
}

/* === HOVER EFFECTS === */
.topbar-link:hover,
.topbar-link:focus {
    color: #FF9A26 !important;
    background-color: rgba(255, 154, 38, 0.05);
}

.topbar-link:hover .topbar-icon,
.topbar-link:focus .topbar-icon {
    color: #FF9A26;
    transform: scale(1.1);
}

/* === HOT BADGE === */
.topbar-badge-hot {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #FF9A26 0%, #FFC935 100%);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 154, 38, 0.4);
    animation: topbar-badge-pulse 2s infinite;
    z-index: 2;
}

@keyframes topbar-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 2px 8px rgba(255, 154, 38, 0.6); }
}

/* === DROPDOWN MODERN === */
.topbar-dropdown-modern {
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
}

.topbar-dropdown-item {
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    color: #435a6b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-dropdown-item::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    color: #FF9A26;
}

.topbar-dropdown-item:hover {
    background: linear-gradient(90deg, rgba(255, 201, 53, 0.1) 0%, rgba(255, 154, 38, 0.1) 100%);
    color: #FF9A26;
    padding-left: 1.5rem;
}

.topbar-dropdown-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* === ALERT MODERN === */
.topbar-alert-modern {
    position: relative;
    overflow: hidden;
    border: none;
}

.topbar-alert-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: topbar-alert-shine 4s infinite;
}

@keyframes topbar-alert-shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.topbar-alert-modern .btn-close-white {
    opacity: 0.8;
    transition: all 0.2s ease;
}

.topbar-alert-modern .btn-close-white:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 1199px) {
    .topbar-link {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 0.8125rem;
    }
    
    .topbar-link-text {
        display: none;
    }
    
    .topbar-icon {
        font-size: 1.125rem;
    }
    
    .topbar-badge-hot {
        top: 0;
        right: 0;
    }
}

@media (max-width: 991px) {
    .topbar-accent-bar {
        display: block; /* Accent auf Mobile sichtbar halten */
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .topbar-link,
    .topbar-icon,
    .topbar-underline,
    .topbar-badge-hot,
    .topbar-dropdown-item,
    .topbar-alert-modern .btn-close-white,
    .topbar-accent-bar::after,
    .topbar-alert-modern::before {
        animation: none !important;
        transition: none !important;
    }
}

/* === FOCUS STATES === */
.topbar-link:focus-visible {
    outline: 2px solid #FF9A26;
    outline-offset: 2px;
}

.topbar-dropdown-item:focus-visible {
    outline: 2px solid #FF9A26;
    outline-offset: -2px;
}
