/* ==========================================================================
   OHDB - STYLES SPÉCIFIQUES POUR MODS.PHP
   ========================================================================== */

/* En-tête principal des Mods */
.mods-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 150px;
    position: relative;
}

/* Partie Gauche : Image et Textes */
.mods-header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    flex: 1;
}

.mods-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.mods-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    z-index: 0;
    opacity: 0.7;
}

.mods-image-front {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mods-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: 20px;
}

.mods-title {
    margin: 0;
}

/* Bouton / Sélecteur de Suffixe du Mod (Style HUD Interactif) */
.mod-suffix-btn {
    order: 2;
    display: none; /* Rendu visible en inline-flex par le JS */
    align-items: center;
    gap: 14px;
    cursor: pointer;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(10, 15, 20, 0.75);
    border: 1px solid rgba(104, 253, 214, 0.35);
    border-left: 3px solid #68fdd6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(104, 253, 214, 0.05);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    overflow: hidden;
}

.mod-suffix-btn:hover {
    background: rgba(104, 253, 214, 0.12);
    border-color: #68fdd6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 15px rgba(104, 253, 214, 0.25);
    transform: translateY(-2px);
}

/* Zoom sur le symbole interne pour compenser la marge transparente du PNG */
.mod-suffix-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 4px;
    transform: scale(2.4);
    transform-origin: center center;
    filter: drop-shadow(0 0 6px rgba(104, 253, 214, 0.45)) brightness(1.15);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.mod-suffix-btn:hover .mod-suffix-icon {
    transform: scale(2.65);
    filter: drop-shadow(0 0 8px rgba(104, 253, 214, 0.75)) brightness(1.25);
}

#modSuffixNameDisplay {
    font-family: 'h73bold', sans-serif;
    font-size: 1.3rem;
    color: #68fdd6;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    line-height: 1;
    transition: color 0.2s ease;
}

.mod-suffix-btn:hover #modSuffixNameDisplay {
    color: #ffffff;
}

.mod-suffix-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #68fdd6;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(104, 253, 214, 0.2);
    transition: transform 0.2s ease, color 0.2s ease;
}

.mod-suffix-btn:hover .mod-suffix-chevron {
    color: #ffffff;
    transform: translateY(2px);
}

/* Options avec icône agrandie dans la modale de sélection sur mods.php */
.oh-modal-option.suffix-modal-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 12px;
    overflow: hidden;
}

.oh-modal-option.suffix-modal-option img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transform: scale(2.3);
    transform-origin: center center;
    filter: drop-shadow(0 0 6px rgba(104, 253, 214, 0.4)) brightness(1.15);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.oh-modal-option.suffix-modal-option:hover img {
    transform: scale(2.55);
    filter: drop-shadow(0 0 10px rgba(104, 253, 214, 0.75)) brightness(1.25);
}

/* Partie Droite : Icône de l'équipement concerné */
.mods-equipment-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
    flex-shrink: 0;
}

.mods-equipment-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
}

.mods-equipment-label {
    color: #68fdd6;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   SECTION NIVEAU DES MODS (Slider et contrôles)
   ========================================================================== */

/* Conteneur principal (Remplace les styles inline de la div parent) */
.mod-level-control-panel {
    margin-bottom: 20px;
    background: rgba(20, 20, 20, 0.6);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ligne supérieure : Labels et Badges */
.mod-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mod-level-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mod-level-label {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.mod-level-number {
    color: #fff;
    margin-left: 5px;
}

/* Pastille / Badge de Recyclage (Remplace onmouseover/onmouseout) */
.mod-recycle-badge {
    cursor: help;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(104, 253, 214, 0.3);
    border-radius: 12px;
    padding: 3px 10px;
    width: fit-content;
    transition: border-color 0.2s ease;
}

.mod-recycle-badge:hover {
    border-color: #68fdd6;
}

.mod-recycle-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    pointer-events: none;
}

.mod-recycle-text {
    color: #68fdd6;
    font-size: 13px;
    font-weight: bold;
    pointer-events: none;
}

/* Badge Rareté en haut à droite */
.mod-rarity-badge {
    font-weight: bold;
    font-size: 13px;
    color: #999;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
}

/* Ligne inférieure : Curseur et Boutons + / - */
.mod-level-slider-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mod-btn-level {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mod-btn-level:hover {
    background: rgba(104, 253, 214, 0.1);
    border-color: #68fdd6;
    color: #68fdd6;
    box-shadow: 0 0 10px rgba(104, 253, 214, 0.2);
}

.mod-slider-input {
    flex-grow: 1;
    height: 6px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

/* ==========================================================================
   OHDB - NETTOYAGE DES STYLES EN LIGNE (MODS.PHP)
   ========================================================================== */

/* Image de fond dans le tableau du catalogue */
.mod-catalog-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%);
    width: 100px;
    z-index: 0;
    opacity: 0.7;
}

/* Badge de clé dans le titre de section */
.mods-cle-badge {
    margin-left: 15px;
    background: rgba(104, 253, 214, 0.1);
    padding: 2px 10px;
    border-radius: 4px;
}

.mods-cle-text {
    margin: 0;
    color: #68fdd6;
    font-weight: bold;
}

/* Description de l'effet de base */
.mods-description-text {
    line-height: 1.6;
}

/* Liste des attributs fixes */
.fixed-attributes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}