/* assets/css/header.css */
/* TechProfixer - Clean Professional Header */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============ TOP BAR ============ */
.top-bar {
    background: #0d0d2b;
    color: rgba(255,255,255,0.7);
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left i {
    color: #ffd54f;
    font-size: 12px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right .social-header {
    display: flex;
    gap: 12px;
}

.top-bar-right .social-header a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: color 0.3s;
}

.top-bar-right .social-header a:hover {
    color: #ffd54f;
}

/* ============ MAIN HEADER ============ */
.main-header {
    background: #1a1a3e;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 38px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo span span {
    color: #ffd54f;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 550px;
}

.header-search form {
    display: flex;
    background: rgba(255,255,255,0.08);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.06);
}

.header-search form:focus-within {
    background: rgba(255,255,255,0.12);
    border-color: #ffd54f;
}

.header-search input {
    flex: 1;
    padding: 9px 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.4);
}

.header-search button {
    padding: 9px 20px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color 0.3s;
}

.header-search button:hover {
    color: #ffd54f;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-cart {
    position: relative;
    color: white;
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.3s;
    text-decoration: none;
}

.header-cart:hover {
    background: rgba(255,255,255,0.08);
}

.header-cart .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ffd54f;
    color: #1a1a3e;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Dropdown - CLEAN */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: none;
    border-radius: 30px;
    padding: 4px 14px 4px 4px;
    cursor: pointer;
    color: white;
    transition: background 0.3s;
}

.user-dropdown-toggle:hover {
    background: rgba(255,255,255,0.12);
}

.user-dropdown-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffd54f;
    color: #1a1a3e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
}

.user-dropdown-toggle i {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    transition: transform 0.3s;
}

.user-dropdown:hover .user-dropdown-toggle i {
    transform: rotate(180deg);
}

/* User Dropdown Menu - ONLY 3 LINKS */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a3e;
    min-width: 200px;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-link:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.dropdown-link i {
    width: 18px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

.dropdown-link:hover i {
    color: #ffd54f;
}

.dropdown-link.logout-link {
    color: #ff6b6b;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4px;
    padding-top: 12px;
}

.dropdown-link.logout-link i {
    color: #ff6b6b;
}

.dropdown-link.logout-link:hover {
    background: rgba(255,107,107,0.08);
}

/* Header Auth Buttons */
.header-auth {
    display: flex;
    gap: 8px;
}

.btn-login {
    padding: 6px 18px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

.btn-register {
    padding: 6px 18px;
    background: #ffd54f;
    color: #1a1a3e;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-register:hover {
    background: #ffca28;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,213,79,0.25);
}

/* ============ NAVIGATION BAR ============ */
.nav-bar {
    background: #0d0d2b;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover {
    color: white;
    background: rgba(255,255,255,0.03);
}

.nav-links li a i {
    font-size: 13px;
}

.nav-links li a.active {
    color: #ffd54f;
    border-bottom-color: #ffd54f;
}

/* ============ MOBILE MENU ============ */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
}

.mobile-menu-toggle button {
    background: #1a1a3e;
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d2b;
    z-index: 9998;
    overflow-y: auto;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu-header .logo span {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

.mobile-menu-header .logo span span {
    color: #ffd54f;
}

.mobile-close {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu-body {
    padding: 16px 20px;
}

.mobile-menu-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-body ul li {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mobile-menu-body ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
}

.mobile-menu-body ul li a i {
    width: 20px;
    color: rgba(255,255,255,0.4);
}

.mobile-menu-body ul li hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin: 8px 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .top-bar-left span:not(:first-child) {
        display: none;
    }
    
    .header-search {
        max-width: 280px;
    }
    
    .header-search input {
        font-size: 13px;
        padding: 7px 14px;
    }
    
    .nav-links li a {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header-search {
        max-width: 160px;
    }
    
    .header-search input {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .header-search button {
        padding: 5px 10px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .logo span {
        font-size: 1.1rem;
    }
    
    .user-name {
        display: none;
    }
    
    .header-auth .btn-login,
    .header-auth .btn-register {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .nav-bar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-header {
        padding: 6px 0;
    }
    
    .user-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }
}

@media (max-width: 576px) {
    .header-search {
        max-width: 110px;
    }
    
    .header-search input {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .header-search button {
        padding: 4px 8px;
    }
    
    .logo img {
        height: 26px;
    }
    
    .logo span {
        font-size: 0.95rem;
    }
    
    .header-cart {
        font-size: 16px;
        padding: 4px 6px;
    }
    
    .header-cart .cart-count {
        width: 15px;
        height: 15px;
        font-size: 8px;
    }
    
    .user-dropdown-toggle {
        padding: 3px 8px 3px 3px;
    }
    
    .user-dropdown-toggle img,
    .user-avatar {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .header-auth .btn-login,
    .header-auth .btn-register {
        padding: 4px 8px;
        font-size: 11px;
    }
}
.header-wishlist {
    position: relative;
    color: white;
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.3s;
    text-decoration: none;
}

.header-wishlist:hover {
    background: rgba(255,255,255,0.08);
}

.header-wishlist .wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Header Compare Button */
.header-compare {
    position: relative;
    color: white;
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.3s;
    text-decoration: none;
}

.header-compare:hover {
    background: rgba(255,255,255,0.08);
}

.header-compare .compare-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f57c00;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}