/* Layout Principal du Builder */
.builder-container {
    display: flex;
    gap: 20px;
    background-color: #0a0a0c;
    padding: 20px;
    color: white;
}

.synergy-sidebar {
    width: 250px;
    background-color: #111111;
    border: 1px solid var(--border-color);
    padding: 15px;
}

.board-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Le Plateau Hexagonal */
.hex-board {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Espace vertical entre les lignes */
    margin-bottom: 30px;
}

.hex-row {
    display: flex;
    gap: 4px; /* Espace horizontal entre les hexagones */
}

/* Décalage une ligne sur deux pour imbriquer les hexagones */
.hex-row:nth-child(even) {
    margin-left: 36px; 
}

/* Forme de l'Hexagone */
.hex-cell {
    width: 68px;
    height: 78px;
    background-color: #1e2328;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    cursor: pointer;
    transition: background-color 0.2s;
}

.hex-cell:hover {
    background-color: #3c3c41;
}

/* Roster des champions en bas */
.champion-roster {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 100%;
}

.roster-champ {
    width: 50px;
    height: 50px;
    border: 2px solid gray; /* La couleur changera selon le coût (Vert, Bleu, Violet...) */
    cursor: pointer;
}

/* =========================================
   TFT : CARTES CHAMPIONS ET TOOLTIPS
   ========================================= */

/* 1. La miniature dans la grille */
.tft-card {
    position: relative;
    display: inline-block;
    width: 140px;  /* Format paysage */
    height: 80px;
    border: 2px solid #3c3c41; /* Couleur par défaut */
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
}

.tft-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2. La boîte cachée (Tooltip) */
.tft-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute; /* Reste absolue par rapport à la carte */
    width: 320px;
    background-color: #111111;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.9);
    transition: opacity 0.15s ease-in-out;
    pointer-events: none;
    color: #a09b8c;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 4px;
}

/* 3. L'en-tête du Tooltip (Splash Art) */
.tft-tooltip-header {
    position: relative;
    width: 100%;
    height: 180px; 
    border-bottom: 6px solid; /* La couleur dépendra de la rareté */
}

.tft-tooltip-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.tft-tooltip-name {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px black, -1px -1px 4px black;
}

.tft-tooltip-cost {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.8);
    color: #fcc200;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* 4. Le corps du Tooltip (Sorts et Stats) */
.tft-tooltip-body {
    padding: 15px;
}

.tft-ability-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.tft-ability-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    margin-right: 12px;
}

.tft-ability-name {
    color: white;
    font-weight: bold;
    flex-grow: 1;
}

.tft-ability-mana {
    color: #00b0f0; /* Bleu mana */
    font-weight: bold;
}

.tft-stat-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #1e2328;
    padding-top: 8px;
    margin-top: 12px;
}

/* =========================================
   FILTRES TFT (Boutons de tri)
   ========================================= */
   .tft-filters {
    margin-bottom: 30px;
    background-color: #05141e;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    color: var(--accent-gold);
    font-weight: bold;
    min-width: 60px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.filter-btn {
    background-color: #1e2328;
    color: #a09b8c;
    border: 1px solid #3c3c41;
    padding: 6px 12px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
    border-radius: 2px;
}

.filter-btn:hover {
    border-color: var(--accent-gold);
    color: #fff;
}

.filter-btn.active {
    background-color: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    font-weight: bold;
}

/* =========================================
   ICÔNES MINIATURES (Stats TFT)
   ========================================= */
   .tft-mini-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle; /* Aligne l'icône avec le texte autour */
    filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.8)); /* Petit effet d'ombre optionnel */
}