/* ===========================================
   DUEL Fighting - Fighter Profile (Premium UX)
   SOPHISTICATED - ELEGANT - PREMIUM
   =========================================== */

/* ===== SECTION CONTAINER ===== */
.fighter-profile {
    position: relative;
    background: var(--color-bg-primary);
    color: #e5e5e5;
    padding: 80px 0;
    font-family: 'Inter', sans-serif;
}

.fighter-profile__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== LAYOUT GRID ===== */
.fighter-profile__layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

/* ===== POSTER (Left Column) ===== */
.fighter-profile__poster {
    position: relative;
    width: 100%;
    margin-top: -20px;
}

.fighter-profile__img {
    width: 100%;
    height: auto;
    display: block;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* RED ACCENT LINE BELOW IMAGE */
.fighter-profile__poster::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(229, 9, 20, 0) 0%,
            rgba(229, 9, 20, 1) 50%,
            rgba(229, 9, 20, 0) 100%);
    opacity: 0.8;
    box-shadow: 0 -1px 4px rgba(229, 9, 20, 0.3);
}

/* ===== CONTENT (Right Column) ===== */
.fighter-profile__content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 20px;
}

/* --- Record Header --- */
.fighter-profile__top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 24px;
    position: relative;
}

/* Premium separator after top section */
.fighter-profile__top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(229, 9, 20, 0.3) 10%,
            rgba(229, 9, 20, 0.6) 50%,
            rgba(229, 9, 20, 0.3) 90%,
            transparent 100%);
}

/* Bio Stats (Age & Height) */
.fighter-profile__bio-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bio-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.bio-stat__value {
    font-family: 'Bebas Neue', display;
    font-size: 2rem;
    font-weight: 400;
    color: white;
    line-height: 1;
    letter-spacing: 0.5px;
}

.bio-stat__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #737373;
}

/* Club location variant */
.bio-stat--club {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bio-stat__icon {
    width: 18px;
    height: 18px;
    fill: #737373;
    flex-shrink: 0;
}

.bio-stat__club-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.2px;
}

/* Social variant */
.bio-stat--social {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.bio-stat--social:hover {
    opacity: 0.8;
}

.bio-stat__social-handle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.2px;
}

.bio-stat-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(229, 9, 20, 0.3) 20%,
            rgba(229, 9, 20, 0.5) 50%,
            rgba(229, 9, 20, 0.3) 80%,
            transparent 100%);
}

.fighter-profile__social {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fighter-profile__social:hover {
    color: white;
    transform: translateY(-1px);
}

.fighter-profile__social svg {
    width: 20px;
    height: 20px;
}

/* ===== PREMIUM STATS SECTION ===== */
.fighter-profile__stats-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-section__title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #666;
    margin: 0;
}

.fighter-profile__stats-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

/* Vertical divider between stats */
.stats-divider {
    width: 1px;
    height: 120px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(229, 9, 20, 0.2) 20%,
            rgba(229, 9, 20, 0.4) 50%,
            rgba(229, 9, 20, 0.2) 80%,
            transparent 100%);
}

/* ===== STAT CARD (Premium Design) ===== */
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.stat-card__chart {
    position: relative;
    width: 140px;
    height: 140px;
}

/* SVG Chart Styles */
.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 3.2;
}

.circle-fill,
.circle-segment {
    fill: none;
    stroke-width: 3.2;
    stroke-linecap: round;
    animation: drawCircle 1.2s ease-out forwards;
}

@keyframes drawCircle {
    from {
        stroke-dasharray: 0 100;
    }
}

/* Center Value Display */
.stat-card__value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.value-number {
    font-family: 'Bebas Neue', display;
    font-size: 3rem;
    font-weight: 400;
    color: white;
    line-height: 1;
    letter-spacing: -1px;
}

.value-unit {
    font-family: 'Bebas Neue', display;
    font-size: 1.5rem;
    color: #a3a3a3;
    line-height: 1;
}

/* Card Info Section */
.stat-card__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.stat-card__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    margin: 0;
}

.stat-card__sublabel {
    font-size: 0.75rem;
    color: #737373;
    margin: 0;
}

/* Breakdown for multi-segment charts */
.stat-card__breakdown {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a3a3a3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
}

.breakdown-dot.ko {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.breakdown-dot.sub {
    background: #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}



/* --- Music Card (Spotify Style) --- */
.fighter-profile__music-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 12px;
    border-radius: 8px;
    margin-top: 32px;
    padding-top: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    position: relative;
    overflow: visible;
}

/* Top separator */
.fighter-profile__music-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 20%,
            rgba(255, 255, 255, 0.08) 80%,
            transparent 100%);
}

.fighter-profile__music-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fighter-profile__music-card:hover::before {
    opacity: 1;
}

.fighter-profile__music-card:hover {
    background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateY(-1px);
}

/* Album Artwork */
.music-card__artwork {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.music-card__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fighter-profile__music-card:hover .music-card__cover {
    transform: scale(1.05);
}

/* Play Overlay on Artwork */
.music-card__play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.music-card__play-overlay svg {
    width: 24px;
    height: 24px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.fighter-profile__music-card:hover .music-card__play-overlay {
    opacity: 1;
}

/* Content Section */
.music-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.music-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.music-card__note-icon {
    width: 14px;
    height: 14px;
    fill: #666;
}

.music-card__label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.music-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 2px;
    transition: color 0.2s ease;
}

.fighter-profile__music-card:hover .music-card__title {
    color: #e50914;
}

.music-card__artist {
    font-size: 0.8rem;
    color: #a3a3a3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action (Play Button) */
.music-card__action {
    flex-shrink: 0;
}

.music-card__play-button {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.music-card__play-button svg {
    width: 18px;
    height: 18px;
    fill: #000;
    margin-left: 2px;
}

.fighter-profile__music-card:hover .music-card__play-button {
    transform: scale(1.06);
    background: #e50914;
}

.fighter-profile__music-card:hover .music-card__play-button svg {
    fill: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .fighter-profile__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fighter-profile__poster {
        max-width: 300px;
        margin: 0 auto;
    }

    .fighter-profile__container {
        padding: 0 20px;
    }

    .fighter-profile__stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-divider {
        display: none;
    }

    .fighter-profile__meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .fighter-profile__music-card {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .fighter-profile {
        padding: 60px 0;
    }

    .fighter-profile__content {
        gap: 36px;
    }

    .fighter-profile__record {
        font-size: 2rem;
    }

    .record-item small {
        display: none;
    }

    .fighter-profile__poster {
        max-width: 240px;
    }

    .stat-card__chart {
        width: 110px;
        height: 110px;
    }

    .value-number {
        font-size: 2.2rem;
    }

    .value-unit {
        font-size: 1.2rem;
    }

    .fighter-profile__meta {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===========================================
   RESPONSIVE DESIGN (Mobile - Custom Stack)
   =========================================== */
@media (max-width: 768px) {
    .fighter-profile {
        padding: 0 0 40px 0;
    }

    .fighter-profile__container {
        padding: 0 20px;
    }

    /* Stack Layout */
    .fighter-profile__layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Adjust Poster Position */
    .fighter-profile__poster {
        width: 100%;
        max-width: 250px;
        margin: 20px auto 10px;
        /* Positive margin to avoid overlap */
        z-index: 5;
    }

    .fighter-profile__poster::after {
        left: 10%;
        width: 80%;
    }

    /* Ensure content is visible */
    .fighter-profile__content {
        width: 100%;
        padding-top: 0;
        gap: 30px;
    }

    /* Bio Stats (Age, Height, Club...) - Allow wrap */
    .fighter-profile__top {
        flex-wrap: wrap;
        gap: 12px;
        padding-bottom: 16px;
    }

    .fighter-profile__bio-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .bio-stat-divider {
        display: none;
    }

    /* Stats Grid (Win Rate / Finish) */
    .fighter-profile__stats-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .stats-divider {
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }

    /* Stat Cards */
    .stat-card {
        width: 100%;
        max-width: 320px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .stat-card__info {
        align-items: center;
    }

    /* Music Section */
    .fighter-profile__music-section {
        margin-top: 10px !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fighter-profile__music-card {
        width: 100%;
        max-width: 350px;
        flex-direction: row;
        /* Horizontal layout for compact look */
        align-items: center;
        text-align: left;
        padding: 12px;
        height: auto;
        gap: 16px;
    }

    .music-card__artwork {
        width: 60px;
        /* Smaller artwork */
        height: 60px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .music-card__content {
        text-align: left !important;
        margin-bottom: 0;
        width: auto;
        flex-grow: 1;
    }

    .music-card__title {
        font-size: 0.95rem;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .music-card__artist {
        font-size: 0.85rem;
    }

    .music-card__action {
        width: auto;
        justify-content: flex-end;
    }

    .music-card__play-button {
        width: 36px;
        height: 36px;
    }

    .music-card__play-button svg {
        width: 18px;
        height: 18px;
    }
}