/* ===========================================
   PROFESSIONAL NAVBAR ENHANCEMENTS
   Enhanced styling for Accueil, Annonces, Techniciens pages
   =========================================== */

.professional-navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 25%, #3b82f6 50%, #1e40af 75%, #0f172a 100%);
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.professional-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.professional-navbar-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.professional-logo {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    object-fit: contain;
    padding: 5px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.professional-logo:hover {
    transform: scale(1.05);
}

.professional-navbar-menu {
    display: flex;
    gap: 50px;
    margin-left: 80px;
    align-items: center;
}

.professional-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 25px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.professional-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.professional-nav-link:hover::before {
    opacity: 1;
}

.professional-nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.professional-nav-link.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.professional-nav-link.active::before {
    opacity: 0.3;
}

.professional-nav-link i {
    font-size: 18px;
    opacity: 0.8;
}

.professional-navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
}

.professional-search-input {
    padding: 14px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 15px;
    width: 320px;
    transition: all 0.3s ease;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.professional-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.professional-search-input:focus {
    outline: none;
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
    transform: scale(1.02);
}

.professional-nav-profile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.professional-nav-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.professional-nav-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.professional-nav-profile:hover img {
    border-color: #fbbf24;
    transform: scale(1.1);
}

.professional-nav-profile i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.professional-nav-profile:hover i {
    color: #fbbf24;
    transform: scale(1.1);
}

.professional-btn-connexion {
    padding: 12px 28px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: var(--white);
    border: 2px solid rgba(5, 150, 105, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.professional-btn-connexion:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    border-color: rgba(5, 150, 105, 0.5);
}

.professional-btn-inscription {
    padding: 12px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--white);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.professional-btn-inscription:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Mobile button variants */
.professional-btn-mobile {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0;
    padding: 14px 20px !important;
    font-size: 16px !important;
}

/* Professional Hamburger Menu */
.professional-hamburger {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    padding: 12px;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.professional-hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    transform: scale(1.05);
}

.professional-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.professional-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background-color: #fbbf24;
}

.professional-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.professional-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #fbbf24;
}

/* Professional Mobile Menu */
.professional-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 2px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 999;
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
}

.professional-mobile-menu.active {
    display: flex;
}

.professional-mobile-nav-link {
    padding: 16px 30px;
    color: #1e293b;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
}

.professional-mobile-nav-link:last-child {
    border-bottom: none;
}

.professional-mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.professional-mobile-nav-link:hover::before {
    transform: scaleY(1);
}

.professional-mobile-nav-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(29, 78, 216, 0.05) 100%);
    color: #1d4ed8;
    padding-left: 40px;
    transform: translateX(10px);
}

.professional-mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

.professional-mobile-nav-link i {
    font-size: 18px;
    color: #64748b;
    transition: all 0.3s ease;
}

.professional-mobile-nav-link:hover i {
    color: #3b82f6;
    transform: scale(1.1);
}

.professional-mobile-nav-link.active i {
    color: #f59e0b;
}

/* Mobile Search in Professional Menu */
.professional-mobile-search-container {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    margin-bottom: 10px;
}

.professional-mobile-search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.professional-mobile-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.professional-mobile-search-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.professional-mobile-search-btn:hover {
    background: #2563eb;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .professional-navbar-menu {
        gap: 30px;
        margin-left: 40px;
    }

    .professional-search-input {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .professional-navbar {
        padding: 10px 0;
    }

    .professional-navbar-content {
        padding: 0 20px;
    }

    .professional-navbar-menu {
        display: none;
    }

    .professional-hamburger {
        display: flex;
    }

    .professional-search-input {
        display: none;
    }

    .professional-navbar-right {
        gap: 15px;
    }

    .professional-btn-connexion,
    .professional-btn-inscription {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .professional-navbar-content {
        padding: 0 15px;
    }

    .professional-logo {
        height: 36px;
    }

    .professional-navbar-right {
        gap: 10px;
    }

    .professional-btn-connexion,
    .professional-btn-inscription {
        padding: 8px 16px;
        font-size: 13px;
    }

    .professional-nav-profile img {
        width: 35px;
        height: 35px;
    }

    .professional-hamburger {
        width: 45px;
        height: 45px;
        padding: 10px;
    }
}

/* Animation for navbar entrance */
@keyframes navbarSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.professional-navbar {
    animation: navbarSlideIn 0.6s ease-out;
}

/* Loading state for search */
.professional-search-input.searching {
    position: relative;
}

.professional-search-input.searching::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Hide search input on mobile devices */
@media (max-width: 1024px) {
    .professional-search-input {
        display: none !important;
    }
}