
/* EMPTY -----------------------------------------------*/
.empty-search-space{
    display: flex;
    flex-direction: row ;
    justify-content: space-around;
    margin: 48px 0px 48px 0px;
    
}
.search-part{
    display: flex;
    flex-direction: column;
    max-width: 275px;
}
/* Demander à Gaëlle comment rendre ça ally (texte absent)*/
.part-search-card{
    position: relative;
    margin: 24px 0px 24px 0px;
    border: var(--medium-gray) 1px solid;
    background: var(--white);  
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.part-search-card *:not(img){
    margin:16px 10px 16px 10px;
}

.part-search-card img/* , .presentationSection img */{
    width: 100%;
    height: 70px;
    object-fit: cover;
    object-position: 50% 70%;
    border-radius: 1rem;
    
}
/* .part-search-card img::after { GNIEEE ça ne marche pas.
    content: "";
    position: absolute;
    z-index: 100;
    inset: 0;
    box-shadow: inset 0 0 10px 10px black;
  } */

.part-search-nothing{
    margin: 24px 0px 24px 0px;
    display: flex;
    width: 100%;
    aspect-ratio: 1/1;
    border: var(--medium-gray) 2px dotted;
    border-radius: 1rem;
    color: var(--text-gray);
    align-items: center;
    justify-content: center;
    background-image: url("/All_Star_Tower_Rater/assets/images/blank_character.png");
    background-size: cover;      
    background-position: center;  
    background-repeat: no-repeat;
    cursor: pointer;
}

.clear-the-selection{
    position: absolute;
    /* z-index: 1000000; */
    color: var(--dark-red);
    background-color: var(--light-gray);
    border-radius: 5px;
    max-width: 75px;
    left: 65%;
    top: 75%;
    transition: all ease-in 0.2s;
}

.clear-the-selection:hover{
transform: scale(1.1);
}

.clear-the-selection:visited{
    color: var(--red);
}
/* FULL ---------------------------------------------- */
@media (min-width: 1000px){
  .responsiveSettings{
    display: flex;
    flex-direction: row;
  }
.responsiveSettings section{
    width: 48%;
    margin-left: 16px;
    margin-right: 16px;
}
  }
.comparatorBody{
    background-color: var(--light-gray);
}
main {
    background-color: var(--light-gray);
    color: var(--black);
    padding: 20px;
    height: fit-content;
    min-height: 800px;
}
.head{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 10vh;
background-color: var(--white);
border-radius: 2rem;
width: 70%;
margin: auto    ;
}
.head h1{
    font-size: 1.75rem;
}
.head p{
    font-size: 1rem;
}

h2[class="classic"]{
    font-size: 1rem;
    padding: 0px;
    margin: 0.4rem;
}

h2 {
    text-align: center;
    font-size: 1.8rem;
    margin: 30px 0;
    color: black;
    padding-bottom: 10px;
}

/* Section Présentation */
.presentationSection {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.firstPresentation, .secondPresentation {
    flex: 1; /*Pour que chacun occupe 50%*/
    min-width: 300px;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--white);
}
.illu1 img, .illu2 img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 240px;
    height: auto;
    object-fit: cover;
    opacity: 1;
    z-index: -1;
    pointer-events: auto;/* Pour qu’elles soient clicables */
    transition: transform 0.3s ease;
  }
  
  .firstPresentation:hover .illu1 img,
  .secondPresentation:hover .illu2 img {
    transform: scale(1.1);     
  }

.blue {
    border-top: 4px solid var(--primary-blue);
}

.red {
    border-top: 4px solid var(--red);
}

.name1, .name2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.name1 {
    color: var(--primary-blue);
}

.name2 {
    color: var(--red);
}

.forname1, .forname2 {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.enchant1, .enchant2 {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.enchant1 {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
}

.enchant2 {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.role1, .role2 {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Section Abilities */
.middleSecionComparator {
    margin-bottom: 40px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.firstAbilities, .secondAbilities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.firstAbilities img, .secondAbilities img {
    width: 50px;
    height: 50px;
    background: var(--medium-gray);
    border-radius: 0.5rem;
    padding: 0.25rem;
    transition: transform 0.3s;
  }

.firstAbilities img:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(59,130,246,0.3));
}

.secondAbilities img:hover {
    border-color: var(--red);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.2));
}

.chart-explain{
    width: 100%;
    font-size: 0.7rem;
    
}

.comparativeStar {
    margin-top: 40px;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    /* max-width: 600px; */
    border: 1px solid var(--medium-gray);
    position: relative;
    flex: 1; 
    display: flex;
    /* justify-content: center; */
   /*  align-items: center; */
   flex-direction: column;
   max-width: 1300px;
}

.comparativeStar canvas{
    margin: auto;
    max-width: 500px;
    width: 100%;
    aspect-ratio: 1/1;
}
.comparativeStar img{
    position:absolute;
    width: 50px;
    transition: ease-in-out all 0.2s; 
   }
   
.comparativeStar img:hover{
transform: scale(1.1);
box-shadow: inset 0px 0px 2px 0px;
}
/* Section Stats - Tableau */
.infoComparator {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.stats-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--text-gray);
    border-bottom: 2px solid var(--medium-gray);
}

.stats-table th:not(.NUPES) {
    text-align: center;
}
.stats-table td {
    padding: 5px 15px;
    border-bottom: 1px solid var(--medium-gray);
    vertical-align: middle;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table tr:hover td {
    background-color: var(--light-gray);
}

.stat-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
    opacity: 0.7;
}

.stat-name {
    font-weight: 500;
    color: var(--text-gray);
}

.stat-value, th{
    font-weight: 600;
    text-align: center;
}

.stat-value.mp1, .stat-value.ec1, .stat-value.ar1, 
.stat-value.fd1, .stat-value.up1, .stat-value.ae1, 
.stat-value.hr1, .stat-value.ds1, .stat-value.dd1, 
.stat-value.dh1, .stat-value.da1, .stat-value.co1, 
.stat-value.wt1 {
    color: var(--primary-blue);
}

.stat-value.mp2, .stat-value.ec2, .stat-value.ar2, 
.stat-value.fd2, .stat-value.up2, .stat-value.ae2, 
.stat-value.hr2, .stat-value.ds2, .stat-value.dd2, 
.stat-value.dh2, .stat-value.da2, .stat-value.co2, 
.stat-value.wt2 {
    color: var(--red);
}

.comparison-value {
    font-weight: 600;
    color: var(--text-gray);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .presentationSection {
        flex-direction: column;
    }
    
    .firstPresentation, .secondPresentation {
        min-width: 100%;
    }
    
    .firstAbilities div, .secondAbilities div {
        width: 60px;
        height: 60px;
    }

    .stats-table {
        font-size: 0.9rem;
    }

    .stats-table th, .stats-table td {
        padding: 8px 10px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}
 

/*Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 280px;
    background-color: var(--text-gray);
    color: var(--white);
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 100;
    bottom: 125%; /* au-dessus de l'image */
    left: 250%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.4);
  }

  .comparativeStar .tooltiptext{
    bottom:100%;
    right: 50%;/* Le right s'applique pas GAËLLLLLLLLE*/
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

  .character-star-diagram .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 0.7;
    width: 200px;
  }
/* More effects */

 .firstAbilities .effect-text{
    color: rgb(153, 153, 255);
  }
  .firstAbilities  .cd-text{
    color: rgb(101, 101, 255);
  }
  .firstAbilities  .type-text{
    color: rgb(55, 118, 255);
  }

  .secondAbilities .effect-text{
    color: rgb(255, 153, 153);
  }
  .secondAbilities  .cd-text{
    color: rgb(255, 101, 101);
  }
  .secondAbilities  .type-text{
    color: rgb(255, 55, 55);
  }
   /* Fast Settings */  
    /* Barre de progression */
    input[type="range"] {
        -webkit-appearance: none;
        width: 100%;
        height: 6px;
        background: var(--medium-gray);
        border-radius: 4px;
        outline: none;
        cursor: pointer;
    }
    
    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 14px;
        width: 14px;
        border-radius: 50%;
        background: var(--primary-blue);
        box-shadow: 0 0 0 2px var(--white), 0 0 4px rgba(0, 0, 0, 0.3);
    }
    
    input[type="range"]::-moz-range-thumb {
        height: 14px;
        width: 14px;
        border-radius: 50%;
        background: var(--primary-blue);
        border: none;
        box-shadow: 0 0 0 2px var(--white), 0 0 4px rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }
    .fastSubmit {
    width: 100%;
    background: var(--violet);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
  }

  .quickChanges{
    max-width: 500px;
    display: flex;
    flex-direction: column;
  }

  section[class="quickChanges"]{
    margin: auto;
    padding: 8px;
    border: 1px solid var(--medium-gray);
    border-radius: 0.5rem;
  }

  .quickChanges h3{
    margin:auto;
  }
  .inputWithMargin{
     margin-bottom: 8px;
  }

  .comparatorMain ul[class="results"]{
    position: relative;
    z-index: 5;
  }
