/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: transparent;
    font-family: 'RetailDemo', Arial, sans-serif;
    overflow: hidden;
}

#root {
    width: 100vw;
    height: 100vh;
    background-color: transparent;
}/* Fontes */
@font-face {
    font-family: 'RetailDemo';
    src: url('./retaildemo-regular-BPfGZfN5.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RetailDemo';
    src: url('./retaildemo-bold-CB-YEwcJ.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'RetailDemo';
    src: url('./retaildemo-semibold-bpeWg-3H.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* Quadro principal */
.player-tooltip-advanced {
    width: 695px;
    height: 400px;
    display: flex;
    background: transparent;
    border-radius: 8px;
    border: 2px solid #494646;
    overflow: hidden;
    animation: fadeIn 0.3s ease-in-out;
    /* Forçar que os backgrounds dos filhos sejam visíveis */
    isolation: isolate;
}

/* Forçar backgrounds visíveis em todos os elementos do tooltip */
.player-tooltip-advanced * {
    /* Removido para evitar conflitos com cores específicas */
}

/* Área vertical esquerda */
.hero-section {
    width: 229px;
    height: 400px;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
    position: relative;
}

/* Cores por time */
.hero-section.amber {
    background: #453619;
}

.hero-section.sapphire {
    background: #242E52;
}

/* Cores da área direita agora são definidas inline nos componentes */

/* Nome do herói */
.hero-name {
    color: #FFEED9;
    font-family: "RetailDemo";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 43px;
    position: absolute;
    top: 12px;
    left: 28px;
    z-index: 10;
}

/* Nome do player */
.player-name {
    color: #FFEED9;
    font-family: "RetailDemo";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 19px;
    position: absolute;
    top: 55px;
    left: 28px;
    z-index: 10;
}

/* Imagem do herói */
.hero-image {
    position: absolute;
    top: 88px;
    left: 0;
    width: 229px;
    height: 311px;
    object-fit: cover;
    border-radius: 0 0 0 8px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Área direita */
.right-section {
    flex: 1;
    position: relative;
}

/* Container dos slots */
.slots-container {
    position: absolute;
    top: 33px;
    left: 37px;
    width: 394px;
    height: 199px;
    flex-shrink: 0;
}

.slots-grid {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.slot-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

/* Padding especial entre os grupos 2x2 */
.slot-group:nth-child(3) {
    margin-left: 12px;
}

/* Slots individuais */
.slot {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 3px;
    opacity: 0.82;
    border: 1px solid #3a4a6a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cores dos slots agora são definidas inline nos componentes */

/* Estilo das imagens dos itens */
.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* Container dos stats */
.stats-container {
    position: absolute;
    top: 195px;
    left: 49px;
    width: 394px;
    height: 199px;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 18px 28px;
}

/* Stats individuais */
.stat-item {
    width: 108px;
    height: 81px;
    flex-shrink: 0;
    border-radius: 3px;
    border: 2px solid #494646;
    background: linear-gradient(180deg, #3E3B3B 0%, #111 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    position: relative;
}

.stat-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -14px;
    z-index: 10;
}

.stat-value {
    color: #CCBFAC;
    text-align: center;
    font-family: "RetailDemo";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
    margin-bottom: 2px;
}

.stat-label {
    color: #CCBFAC;
    text-align: center;
    font-family: "RetailDemo";
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 17px;
    white-space: pre-line;
}

/* Placeholder para imagem do herói */
.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4a4a4a, #2a2a2a);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCBFAC;
    font-size: 16px;
}

/* Placeholder para slots */
.slot-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCBFAC;
    font-size: 12px;
}

/* Cores dos placeholders agora são definidas inline nos componentes */

/* Placeholder vazio (sem texto) */
.slot-placeholder:empty::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Indicador de atualização em tempo real */
.player-tooltip-advanced.updating {
    animation: updatePulse 0.5s ease-in-out;
}

@keyframes updatePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 238, 217, 0.7);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(255, 238, 217, 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 238, 217, 0);
    }
}/* Fontes */
@font-face {
    font-family: 'RetailDemo';
    src: url('./retaildemo-regular-BPfGZfN5.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RetailDemo';
    src: url('./retaildemo-bold-CB-YEwcJ.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'RetailDemo';
    src: url('./retaildemo-medium-C0b4yiPj.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'RetailDemo';
    src: url('./retaildemo-semibold-bpeWg-3H.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

.video-overlay {
    margin: 0;
    background-color: transparent;
    font-family: 'RetailDemo', Arial, sans-serif;
}

.container {
    width: 100%;
    height: 120px;
    /* Altura suficiente para os portraits de 94px + margem */
    position: relative;
    overflow: hidden;
    background-color: transparent;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    /* Inicialmente invisível */
}

/* Componente Portrait - Base */
.portrait {
    position: absolute;
    width: 80px;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'RetailDemo', Arial, sans-serif;
    font-weight: bold;
    font-size: 4px;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    pointer-events: auto;
    /* Inicialmente invisível */
}

/* Gradiente de fundo - Amber */
.portrait.amber .gradient-background {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 16.67%;
    bottom: 6.25%;
    background: #423D1F;
    width: 90%;
    height: 77.08%;
    border-radius: 50%;
}

/* Gradiente de fundo - Sapphire */
.portrait.sapphire .gradient-background {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 16.67%;
    bottom: 6.25%;
    background: #24326F;
    width: 90%;
    height: 77.08%;
    border-radius: 50%;
}

/* Container do herói com SVG */
.hero {
    position: absolute;
    left: 2.5%;
    right: 2.5%;
    top: 0%;
    bottom: 5.21%;
    width: 95%;
    height: 94.79%;
}

/* Container da imagem do herói */
.image-container {
    position: absolute;
    left: 2.5%;
    right: 2.5%;
    top: 0%;
    bottom: 5.21%;
    width: 95%;
    height: 94.79%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Estados ativos */
.portrait.active {
    cursor: pointer;
    opacity: 1;
}

.portrait.disabled {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    opacity: 0;
}

.portrait.disabled:hover {
    /* Sem efeitos visuais */
}

/* Posicionamento dos portraits - Team Amber nas laterais */
.portrait:nth-child(1) {
    left: 20px;
    top: 50px;
}

.portrait:nth-child(2) {
    left: 20px;
    top: 150px;
}

.portrait:nth-child(3) {
    left: 20px;
    top: 250px;
}

.portrait:nth-child(4) {
    left: 20px;
    top: 350px;
}

.portrait:nth-child(5) {
    left: 20px;
    top: 450px;
}

.portrait:nth-child(6) {
    left: 20px;
    top: 550px;
}

/* Team Sapphire - lateral direita */
.portrait:nth-child(7) {
    right: 20px;
    top: 50px;
}

.portrait:nth-child(8) {
    right: 20px;
    top: 150px;
}

.portrait:nth-child(9) {
    right: 20px;
    top: 250px;
}

.portrait:nth-child(10) {
    right: 20px;
    top: 350px;
}

.portrait:nth-child(11) {
    right: 20px;
    top: 450px;
}

.portrait:nth-child(12) {
    right: 20px;
    top: 550px;
}





/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Indicador de carregamento */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #FFEED9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Container para os portraits - sem interferir com o conteúdo */
.container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}