/**
 * Header V5.0 Styles
 * 
 * Moderner Header mit Navigation und User-Menu
 * 
 * @package DATAsoft_Escort_Core
 * @version 5.0.1
 */

/* ===========================
   HEADER CONTAINER
   =========================== */

.ds-header-v5 {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ds-header-topbar {
    padding: 15px 0;
}

.ds-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ===========================
   LOGO
   =========================== */

.ds-header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ds-logo-img {
    max-height: 50px;
    width: auto;
}

.ds-logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   NAVIGATION
   =========================== */

.ds-header-nav {
    flex: 1;
}

.ds-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.ds-nav-menu a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ds-nav-menu a:hover {
    color: #667eea;
}

/* ===========================
   USER MENU
   =========================== */

.ds-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ds-user-icon {
    position: relative;
    color: #4a5568;
    font-size: 24px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.ds-user-icon:hover {
    color: #667eea;
}

.ds-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f56565;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
}

/* ===========================
   USER DROPDOWN
   =========================== */

.ds-user-dropdown {
    position: relative;
}

.ds-user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.ds-user-avatar:hover {
    background: #f7fafc;
}

.ds-user-avatar img {
    border-radius: 50%;
}

.ds-user-name {
    font-weight: 500;
    color: #2d3748;
}

.ds-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 220px;
    padding: 10px 0;
    margin-top: 10px;
}

.ds-user-dropdown:hover .ds-dropdown-menu {
    display: block;
}

.ds-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #2d3748;
    text-decoration: none;
    transition: background 0.3s ease;
}

.ds-dropdown-menu a:hover {
    background: #f7fafc;
}

.ds-dropdown-menu hr {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

/* ===========================
   AUTH BUTTONS
   =========================== */

.ds-header-auth {
    display: flex;
    gap: 15px;
}

.ds-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.ds-btn-outline {
    color: #667eea;
    border-color: #667eea;
    background: transparent;
}

.ds-btn-outline:hover {
    background: #667eea;
    color: #fff;
}

.ds-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.ds-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* ===========================
   MOBILE MENU
   =========================== */

.ds-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.ds-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #2d3748;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.ds-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.ds-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.ds-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.ds-mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
}

.ds-mobile-menu.active {
    display: block;
}

.ds-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ds-mobile-nav li {
    margin-bottom: 15px;
}

.ds-mobile-nav a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.ds-mobile-nav a:hover {
    background: #f7fafc;
}

.ds-mobile-auth {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ds-btn-block {
    width: 100%;
    text-align: center;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .ds-header-nav,
    .ds-user-menu,
    .ds-header-auth {
        display: none;
    }
    
    .ds-mobile-toggle {
        display: flex;
    }
    
    .ds-container {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .ds-logo-text {
        font-size: 18px;
    }
    
    .ds-header-topbar {
        padding: 10px 0;
    }
}

