/* Characters Showcase */

.char-showcase-master-container {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    position: relative;
}

/* --- Thumbnails control --- */
.thumb-slider-wrapper {
    position: absolute;
    max-width: 423px;
    padding: 0 50px;
    bottom: 10vh;
    left: calc(50% - 610px);
    z-index: 2;
}
.thumb-item-slide {
    width: auto !important;
}
.thumb-circle-frame {
    cursor: pointer;
    transition: all 0.3s ease;
}
.thumb-circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    max-width: 108px !important;
    margin: 0 !important;
}
.thumb-item-slide:not(.swiper-slide-thumb-active) .thumb-circle-frame img {
    filter: brightness(0.35);
}

/* --- Slider navigation --- */
.char-nav-prev, .char-nav-next {
    color: var(--primary-red);
    font-weight: bold;
}
.char-nav-prev::after, .char-nav-next::after {
    font-size: 24px !important;
}

/* --- Layout --- */
.profile-split-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    height: 100%;
    max-height: 700px;
    aspect-ratio: 21/9;
    margin: 0 auto;
}
.profile-panel {
    max-width: 1200px;
    display: flex;
    width: 100%;
    height: 100%;
}
.profile-details-panel {
    display: flex;
    justify-content: center;
    max-width: 430px;
    width: 100%;
}
.profile-visuals-panel {
    position: absolute;
    top: 0;
    right: 1%;
    width: 70%;
    height: 100%;
    z-index: -1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- Name tag --- */
h2.profile-name-badge {
    background-color: var(--primary-red);
    color: #fff;
    display: inline-block;
    padding: 3px 40px 3px 15px;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    clip-path: url('#brush-clip');
}
.profile-description {
    text-shadow: 2px 1px 3px black;
}

/* --- Stat blocks --- */
.profile-stats-dashboard {
    max-width: 380px;
    font-size: 24px;
    font-weight: 900;
    font-family: "Oswald", sans-serif;
    color: var(--primary-red);
    text-transform: uppercase;
    margin-bottom: 15px;
}
.stat-dashboard-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
}
.dashboard-blocks-track {
    display: flex;
    gap: 16px;
}
.block-unit {
    width: 28px;
    height: 28px;
    transition: background-color 0.4s ease;
    background-size: contain;
    background-repeat: no-repeat;
}
/* --cge-punch-empty / --cge-punch-filled are set from PHP (uploads URL) in characters.php */
.block-unit.empty {
    background-image: var(--cge-punch-empty);
}
.block-unit.filled {
    background-image: var(--cge-punch-filled);
}


/* --- Background / character art --- */
.visuals-bg-mask {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateX(0px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 0;
}
.swiper-slide-active .visuals-bg-mask {
    transform: translateX(0);
    opacity: 0.3;
}
.swiper-slide-active .profile-visuals-panel {
    transform: translateX(0);
    opacity: 1;
}


@media only screen and (max-width: 1280px) {
    .thumb-slider-wrapper {
        left: 20px;
    }
    .profile-details-panel {
        width: calc(100% - 60px);
        padding: 0 30px;
    }
}

@media only screen and (max-width: 1032px) {
    .profile-details-panel {
        max-width: 380px;
    }
    .profile-split-grid {
        aspect-ratio: 2 / 1;
    }
    .thumb-slider-wrapper {
        max-width: 358px;
        bottom: 0;
    }
    .thumb-circle-frame img {
        max-width: 86px !important;
    }
    
}

@media only screen and (max-width: 768px) {
    .profile-split-grid {
        flex-wrap: nowrap;
        align-items: center;
        flex-direction: column;
        margin-top: 100px;
        gap: 20px;
        aspect-ratio: unset;
        max-height: unset;
    }
    .visuals-bg-mask,
    .profile-visuals-panel {
        aspect-ratio: 4 / 3;
    }
    .visuals-bg-mask {
        background-position: bottom;
        height: auto;
    }
    .profile-visuals-panel {
        width: 90%;
        position: unset;
        margin: 0 auto;
    }
    .profile-details-panel {
        margin: 0 auto;
        width: 90%;
        padding: 0;
    }
    .details-panel-content {
        width: 100%;
    }
    h2.profile-name-badge {
        line-height: 1;
        padding: 10px 40px 10px 15px;
        font-size: 24px;
    }
    .thumb-slider-wrapper {
        top: 0;
        left: 0;
        right: 0;
        bottom: unset;
        margin: 0 auto;
    }
    
    
}
@media only screen and (max-width: 380px) {
    .visuals-bg-mask {
        aspect-ratio: 1/1;
    }
    .profile-details-panel {
        width: 85%;
    }
    h2.profile-name-badge {
        margin-bottom: 4px;
        
    }
    .stat-dashboard-row {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    .dashboard-row-unknown-text {
        line-height: 1;
        margin-top: -3px;
        margin-bottom: 7px;
    }
}
@media only screen and (max-width: 357px) {
    .profile-split-grid {
        margin-top: 70px;
    }
    .thumb-circle-frame img {
        max-width: 64px !important;
    }
    .thumb-slider-wrapper {
        max-width: 292px;
    }
}
