/* ============================================
   TOOLS DROPDOWN - EXPOSURIX STYLE
   Respecte le design existant de l'app
   ============================================ */

/* Container du dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Lien principal "Tools" - style identique aux autres nav-link */
.nav-dropdown > a.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9d9d9d;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    transition: color 0.3s;
    cursor: pointer;
    position: relative;
}

.nav-dropdown > a.nav-link:hover {
    color: #ffffff;
}

/* Petit triangle indicateur */
.dropdown-arrow {
    font-size: 9px;
    transition: transform 0.2s;
    opacity: 0.6;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menu déroulant */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 31, 41, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 127, 0, 0.2);
    border-radius: 12px;
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
}

/* Menu ouvert (avec classe .active ajoutée par JS) */
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Petite flèche pointant vers le lien */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(255, 127, 0, 0.2);
}

/* Catégories dans le dropdown */
.dropdown-category {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 0;
}

.dropdown-category:last-child {
    border-bottom: none;
}

.dropdown-category-title {
    padding: 10px 16px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

/* Items du dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #9d9d9d;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 127, 0, 0.08);
    color: #ffffff;
    padding-left: 20px;
}

.dropdown-item-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.6;
}

.dropdown-item:hover .dropdown-item-icon {
    opacity: 1;
}

.dropdown-item-text {
    flex: 1;
}

.dropdown-item-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Badge "New" */
.badge-new {
    background: rgba(255, 127, 0, 0.15);
    color: #ff7f00;
}

/* Badge "Soon" */
.badge-soon {
    background: rgba(139, 148, 158, 0.15);
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .dropdown-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        transform: none;
        min-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: none;
    }
}