/* ======================== */
/* === GENERAL SETTINGS === */
/* ======================== */

body.characterPageBody {
    margin: 0;
    font-family: normal,'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: #1f2937;
}

.characterPageMain {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}


/* ======================= */
/* === TOP SECTION UI === */
/* ======================= */

.top-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.character-name h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.character-illu img {
    max-height: 250px;
    object-fit: contain;
    border-radius: 1rem;
}


/* ========================== */
/* === MIDDLE SECTION UI === */
/* ========================== */

.middle-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}


/* === Abilities Section === */

.abilities-container {
    flex: 1;
    background: var(--white);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.character-abilities {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.character-abilities img {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 0.5rem;
    padding: 0.25rem;
    transition: transform 0.3s;
}

.character-abilities img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(59,130,246,0.3));
}


/* === Star Diagram Section === */

.character-star-diagram {
    flex: 2;
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.character-star-diagram img {
    position: absolute;  
    width: 50px;
    transition: ease-in-out all 0.2s; 
}

.character-star-diagram img:hover {
    transform: scale(1.1);
    box-shadow: inset 0px 0px 2px 0px;
}


/* === Recommendations Form === */

.recommandations {
    flex: 1;
    background: var(--white);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recommandations label,
.recommandations input,
.recommandations select {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.fastSubmit {
    width: 100%;
    background: var(--violet);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}


/* ========================= */
/* === CHARACTER STATS  === */
/* ========================= */

.character-stats {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.character-stats h2 {
    margin: auto;
}

.stat-box {
    background: var(--white);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--light-gray);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.stat-box:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    margin: auto;
}

.stat-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--text-gray);
    order: -1;
    width: 100%;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-blue);
    width: 100%;
}


/* ====================== */
/* === TOOLTIP STYLES === */
/* ====================== */

.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%;
    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);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.character-star-diagram .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 0.7;
    width: 200px;
}


/* ========================== */
/* === TEXT COLOR HELPERS === */
/* ========================== */

.effect-text {
    color: rgb(153, 153, 255);
}

.cd-text {
    color: rgb(101, 101, 255);
}

.type-text {
    color: rgb(55, 118, 255);
}


/* ============================ */
/* === RANGE SLIDER (UI) ==== */
/* ============================ */

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;
}