/* Navbar Styles */

.navbar {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 92%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 0 0 24px 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.navbar:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(2px);
}

.navbar.hide {
    transform: translateY(-120%);
}

.no-navbar-menu {
    position: fixed;
    right: 20px;
    top: 20px;
    height: 50px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #154726 0%, #1a5a30 100%);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.no-navbar-menu:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.no-navbar-menu p {
    padding-left: 8px;
    margin: 0;
    font-weight: 500;
}

.navbar-left {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navbar-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-center img {
    height: 45px;
}

.navbar-center span {
    font-family: 'Beckan', 'Inter', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.navbar-right {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
}

.navbar-right input {
    padding: 10px 20px;
    border: 2px solid rgba(21, 71, 38, 0.12);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    width: 200px;
}

.navbar-right input:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    width: 240px;
}

.navbar-right input::placeholder {
    color: rgba(44, 62, 80, 0.5);
}

.navbar-right img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.navbar-right img:hover {
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.link-main {
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 12px;
}

.link-main:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

.link-main.active {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.15);
    font-weight: 600;
}

/* Résultats de recherche - Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    margin-top: 8px;
    border: 1px solid rgba(21, 71, 38, 0.1);
    z-index: 1001;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(21, 71, 38, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(212, 175, 55, 0.08);
    padding-left: 20px;
}

.search-result-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.search-result-item:hover .search-result-image {
    transform: scale(1.05);
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-highlight {
    color: var(--accent-gold);
    font-weight: 700;
    background: rgba(212, 175, 55, 0.15);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-category {
    font-size: 0.75rem;
    color: rgba(44, 62, 80, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: rgba(44, 62, 80, 0.6);
    font-size: 0.9rem;
}

/* Relative positioning for dropdown parent */
.navbar-right {
    position: relative;
}

/* Scrollbar styling for dropdown */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(21, 71, 38, 0.2);
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(21, 71, 38, 0.4);
}
