/* ===========================================
   DUEL Fighting - Fighters Section
   Design: Editorial Offset
   
   IMAGE: 800x1302 (ratio 0.614)
   Full image visible, no cropping, no frames
   =========================================== */

/* ===== Base Section Styles ===== */
.fighters-section {
    position: relative;
    padding: var(--spacing-xl) 0 var(--spacing-3xl) 0;
    background: var(--color-bg-primary);
    overflow: hidden;
}

.fighters-section__container {
    max-width: 100%;
    padding: 0 var(--spacing-xl);
}

.fighters-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-sm);
}

.fighters-section__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
    margin: 0;
}

.fighters-section__title span {
    color: var(--color-accent);
}


/* Wrapper for mask effect */
.fighters-section__carousel {
    position: relative;
    overflow: hidden;
    /* Fade edges for scroll indication */
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 3%,
            black 97%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 3%,
            black 97%,
            transparent 100%);
}

/* Filters Menu (Seating Style) */
.fighters-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

.fighters-filter__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;

    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: capitalize;
}

.fighters-filter__item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.fighters-filter__item.active {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
    color: white;
}

/* Header & Navigation Arrows */
.fighters-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
}

.fighters-section__nav-arrows {
    display: flex;
    gap: var(--spacing-sm);
}

.fighters-section__arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.fighters-section__arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.fighters-section__arrow:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.fighters-section__arrow svg {
    width: 22px;
    height: 22px;
}

/* ===== Horizontal Scroll Container ===== */
.fighters-row {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--spacing-md) var(--spacing-sm);
    cursor: grab;
    user-select: none;
}

.fighters-row:active,
.fighters-row.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.fighters-row::-webkit-scrollbar {
    display: none;
}


/* ===========================================
   DESIGN - Editorial Offset (Image complète)
   Texte centré en hauteur, démarrant sur l'image
   =========================================== */

.fighter-card {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    position: relative;
    cursor: pointer;
    overflow: visible;
    transition: transform var(--transition-base);
}

/* ... (unchanged code) ... */

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    /* ... (unchanged code) ... */

    .fighter-card {
        width: 250px;
        height: 255px;
    }

    /* ... */
}

@media (max-width: 480px) {
    /* ... */

    .fighter-card {
        width: 210px;
        height: 215px;
    }

    /* ... */
}

/* Bottom accent line - elegant gradient border */


.fighter-card:hover {
    transform: scale(1.03);
    z-index: 10;
}

/* Soft fade using mask-image instead of background overlay to avoid artifacts */
.fighter-card__image-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 185px;
    height: 100%;
    z-index: 1;
}

/* ::after supprimé car remplacé par mask-image sur le parent */

/* Bottom accent line - ONLY under image */
.fighter-card__image-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(229, 9, 20, 0.5) 20%,
            rgba(229, 9, 20, 0.9) 50%,
            rgba(229, 9, 20, 0.5) 80%,
            transparent 100%);
    opacity: 0.7;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fighter-card:hover .fighter-card__image-container::before {
    opacity: 1;
    height: 4px;
    filter: drop-shadow(0 -2px 8px rgba(229, 9, 20, 0.8)) drop-shadow(0 -4px 15px rgba(229, 9, 20, 0.4));
    box-shadow: none;
    /* Important de supprimer l'ancien box-shadow */
}

.fighter-card__image {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: left top;
    filter: grayscale(10%) contrast(1.08);
    transition: filter var(--transition-base);

    /* Masque progressif : visible à 100% (noir) -> transparent à droite */
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 95%);
    mask-image: linear-gradient(to right, black 60%, transparent 95%);
}

.fighter-card:hover .fighter-card__image {
    filter: grayscale(0%) contrast(1.12);
}

/* Text content - centered vertically */
.fighter-card__content {
    position: absolute;
    left: 110px;
    top: 62%;
    transform: translateY(-50%);
    width: 200px;
    z-index: 2;
}

/* Prénom - BIEN VISIBLE */
.fighter-card__firstname {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Nom de famille - Grand et impactant */
.fighter-card__lastname {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-text-primary);
    line-height: 0.9;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Stats */
.fighter-card__stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.1em;
}

.fighter-card__wins {
    color: #22c55e;
}

.fighter-card__losses {
    color: #ef4444;
}

.fighter-card__draws {
    color: var(--color-text-muted);
}

.fighter-card__separator {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 100;
}

/* CTA Text - Luminous text at bottom of image */
/* CTA Text - Luminous text at bottom of image */
.fighter-card__cta {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 185px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Background supprimé, géré par le ::after de l'image */

    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 400;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-decoration: none;
    text-shadow: 0 -2px 8px rgba(229, 9, 20, 0.5);

    z-index: 20;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    pointer-events: auto;
}

.fighter-card__cta span {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hover effects */
/* Hover effects */
.fighter-card:hover .fighter-card__cta {
    opacity: 1;
    transform: translateY(0);
    text-shadow:
        0 0 5px rgba(229, 9, 20, 1),
        0 0 15px rgba(229, 9, 20, 0.5);
}

/* Remove old styles references explicitly if needed, but replacing the block handles it */


/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .fighters-section {
        padding: var(--spacing-2xl) 0 var(--spacing-lg) 0;
    }

    .fighters-section__container {
        padding: 0 var(--spacing-md);
    }

    .fighters-section__header {
        padding: 0;
        margin-bottom: var(--spacing-md);
    }

    .fighters-section__title {
        font-size: 1.5rem;
    }

    /* Horizontal Scroll for Filters */
    .fighters-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        /* Spacing */
        margin-bottom: var(--spacing-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        gap: 12px;
    }

    .fighters-filter::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .fighters-filter__item {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.85rem;
    }

    .fighters-row {
        gap: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-xs);
    }

    .fighter-card {
        width: 250px;
        height: 255px;
    }

    .fighter-card__image-container {
        width: 155px;
    }

    .fighter-card__content {
        left: 95px;
    }

    .fighter-card__firstname {
        font-size: 0.75rem;
    }

    .fighter-card__lastname {
        font-size: 1.9rem;
    }

    .fighter-card__stats {
        font-size: 1.1rem;
    }

    .fighter-card__cta {
        /* Reset to text style */
        padding: 0;
        background: none;
        border-radius: 0;

        /* Position over image */
        left: 0;
        width: 100%;
        bottom: 12px;

        justify-content: center;
        opacity: 1;
        transform: translateY(0);

        font-size: 1.1rem;
        /* Big text */
        letter-spacing: 0.2em;
    }
}

@media (max-width: 480px) {
    .fighters-section {
        padding: var(--spacing-2xl) 0 var(--spacing-md) 0;
    }

    .fighters-section__container {
        padding: 0 var(--spacing-sm);
    }

    .fighters-section__header {
        margin-bottom: var(--spacing-sm);
    }

    .fighters-section__title {
        font-size: 1.35rem;
    }

    .fighters-row {
        gap: var(--spacing-sm);
        padding: var(--spacing-xs) 0;
    }

    .fighter-card {
        width: 210px;
        height: 215px;
    }

    .fighter-card__image-container {
        width: 130px;
    }

    .fighter-card__content {
        left: 75px;
        width: 150px;
    }

    .fighter-card__firstname {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }

    .fighter-card__lastname {
        font-size: 1.5rem;
    }

    .fighter-card__stats {
        font-size: 0.95rem;
    }

    .fighter-card__cta {
        /* Position over image */
        left: 0;
        width: 100%;
        bottom: 6px;
        /* Closer to red line */

        /* Reset Styles */
        padding: 0;
        background: none;
        border-radius: 0;

        font-size: 1rem;
        /* Big text */
        gap: 0;
        display: flex;
        justify-content: center;

        /* Restore text shadow for legibility */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    .fighter-card__cta svg {
        display: none;
        /* Hide icon for text-only look if generic icon exists */
    }
}