﻿/* Estilos generales */
:root {
    --dota-red: #e03c2e;
    --dota-dark: #0f0f13;
    --dota-gold: #c8a165;
    --dota-light: #e2d9c0;
    --dota-white: #ffffff;
}

html {
    overflow-y: auto; /* Solo scroll vertical cuando sea necesario */
}

body {
    position: relative; /* Necesario para el contexto de z-index */
    height: 100vh; /* Altura completa del viewport */
    background-color: #0b0802;
    overflow-x: hidden;
    cursor: url('/css/cursors/Cursor_Normal.cur'), auto;
}

.inventory-wrapper {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 10px;
    padding: 10px; /* Reducimos padding general */
}

/* Panel del jugador */
.player-panel {
    width: 300px;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #343434;
}

.player-header {
    border-bottom: 1px solid #343434;
    padding-bottom: 10px;
    margin-bottom: 15px;
}


.stat-row, .attribute {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}


.attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.player-name {
    color: #f0c060;
    font-size: 22px;
    display: block;
}

.player-status {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.status-label {
    margin-right: 5px;
    color: #a0a0a0;
}

.status-value {
    font-weight: bold;
}

.player-stats {
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.stat-label {
    color: #a0a0a0;
}

.stat-value {
    font-weight: bold;
    color: #a0a0a0; /* Añade esta línea para texto blanco */
}

.section-title {
    color: #f0c060;
    border-bottom: 1px solid #343434;
    padding-bottom: 5px;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.attribute {
    background: rgba(30, 30, 40, 0.6);
    padding: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

.attr-name {
    color: #a0a0a0;
}

.attr-value {
    font-weight: bold;
    color: #a0a0a0;
}

/* Contenedor principal de inventarios */
.inventory-main-container {
    display: flex;
    gap: 0px; /* Reducimos el espacio entre paneles */
    justify-content: flex-start; /* Alineamos a la izquierda */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}


.inventory-panel {
    flex-grow: 0; /* Cambiamos a 0 para no crecer automáticamente */
    width: 400px; /* Ancho fijo personalizable */
    background: rgba(20, 20, 30, 0.8);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #343434;
    margin-right: -20px; /* Espacio a la derecha */
}

/* Panel COSPRE */
.cospre-panel {
    width: 210px; /* Ancho para 3 columnas */
    height: 510px;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #343434;
    margin-right: 0; /* Eliminamos margen derecho */
    margin-left: 240px;
}

.cospre-panel-2 {
    width: 140px; /* Ancho para 2 columnas */
    height: 100px;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #343434;
    margin-bottom: 20px;
}

/* Panel COSPRE 3 (9 items) */
.cospre-panel-3 {
    width: 210px; /* Ancho para 3 columnas */
    height: 210px;
    background: rgba(20, 20, 30, 0.8);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #343434;
}
/* Grid de COSPRE - 1 columna x 3 filas */
.inventory-grid-cospre-vertical {
    display: grid;
    grid-template-columns: repeat(3, 45px); /* 3 columnas */
    grid-template-rows: 45px; /* 1 fila */
    gap: 10px;
    justify-content: center;
    margin: 15px auto;
    width: fit-content;
}

/* Grid de 3 columnas (Equipped Items) */
.inventory-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 45px);
    gap: 10px;
    justify-content: center;
    margin: 15px auto;
    width: fit-content;
}

/* Grid de 7 columnas (Inventory) */
.inventory-grid-seven {
    display: grid;
    grid-template-columns: repeat(7, 45px);
    gap: 10px;
    justify-content: center;
    margin: 15px auto;
    width: fit-content;
}

/* Grid de COSPRE (3 columnas verticales) */
.inventory-grid-cospre {
    display: grid;
    grid-template-columns: repeat(3, 45px);
    gap: 10px;
    justify-content: center;
    margin: 15px auto;
    width: fit-content;
}

/* Grid de COSPRE 2 (2 columnas) */
.inventory-grid-cospre-2 {
    display: grid;
    grid-template-columns: repeat(2, 45px);
    gap: 10px;
    justify-content: center;
    margin: 15px auto;
    width: fit-content;
}

/* Grid de COSPRE 3 (3x3) */
.inventory-grid-cospre-3 {
    display: grid;
    grid-template-columns: repeat(3, 45px);
    grid-template-rows: repeat(3, 45px);
    gap: 10px;
    justify-content: center;
    margin: 15px auto;
    width: fit-content;
}

/* Slots de items */
.item-slot {
    width: 45px;
    height: 45px;
    background: rgba(30, 30, 40, 0.6);
    border: 2px solid #404040;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    overflow: hidden;
}
/* Ajuste para mantener el estilo especial de los slots COSPRE */

.item-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image {
    width: 45px;
    height: 45px;
    transform: scale(1.0);
    transform-origin: top left;
    object-fit: none;
    object-position: 0 0;
}

.item-quantity {
    position: absolute;
    bottom: 3px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Estilos de rareza 
    .item-slot.common {
        border-color: #b0b0b0;
    }

.item-slot.magic {
    border-color: #6080f0;
}

.item-slot.rare {
    border-color: #f0d020;
    box-shadow: 0 0 5px rgba(240, 208, 32, 0.3);
}

.item-slot.unique {
    border-color: #e0b050;
    box-shadow: 0 0 8px rgba(224, 176, 80, 0.5);
}

.item-slot.cospre {
    border-color: #e0b050;
    box-shadow: 0 0 10px rgba(224, 176, 80, 0.7);
}
    */
.item-tooltip b {
    color: #f0c060;
    font-size: 15px;
}

.item-tooltip .item-type {
    color: #a0a0a0;
    font-style: italic;
    margin: 5px 0;
    display: block;
}

.item-tooltip .item-property {
    margin: 3px 0;
}

/* Responsive */
@media (max-width: 1000px) {
    .inventory-wrapper {
        flex-direction: column;
    }

    .player-panel {
        width: auto;
    }

    .inventory-grid-three,
    .inventory-grid-seven {
        display: grid;
        gap: 10px;
    }
}


/* Tooltip - Estilo mejorado */
.item-tooltip {
    position: fixed;
    z-index: 1000;
    width: 300px;
    background: rgba(20, 16, 8, 0.98);
    border: 1px solid #b89859;
    color: #f0e6d2;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    font-family: "trajan-pro", serif;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    pointer-events: none;
    animation: tooltipFade 0.3s ease-out;
    backdrop-filter: blur(2px);
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    /* Evita que el tooltip se salga de la pantalla */
    margin-top: 0 !important;
    animation: none; /* Eliminamos la animación anterior */
}

/* Mostrar tooltip al hacer hover */
.item-tooltip {
    top: 0;
    left: 110%;
    transform: none; /* Elimina transform si quieres evitar offset raro */
    z-index: 10;
}

    .item-tooltip::before {
        content: '';
        position: absolute;
        right: 100%;
        top: 50%;
        transform: translateY(-50%);
        border-width: 8px;
        border-style: solid;
        border-color: transparent #b89859 transparent transparent;
    }


    /* Flecha del tooltip */
    .item-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #b89859 transparent transparent transparent;
    }

    /* Título del tooltip */
    .item-tooltip b {
        display: block;
        font-size: 16px;
        text-align: center;
        margin-bottom: 5px;
        color: #f0e6d2;
        text-shadow: 0 0 3px rgba(0,0,0,0.5);
    }

    /* Tipo de item */
    .item-tooltip .item-type {
        color: #b89859;
        font-style: italic;
        text-align: center;
        margin: 5px 0;
        display: block;
        font-size: 12px;
    }

    /* Separadores */
    .item-tooltip hr {
        border: 0;
        height: 1px;
        background: linear-gradient(to right, transparent, #b89859, transparent);
        margin: 8px 0;
    }

    /* Secciones de stats */
    .item-tooltip .tooltip-section {
        margin: 8px 0;
    }

    /* Filas de propiedades */
    .item-tooltip .tooltip-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 3px;
    }

    /* Etiquetas */
    .item-tooltip .tooltip-label {
        color: #b89859;
        font-weight: bold;
    }

    /* Valores de stats */
    .item-tooltip .stat-value {
        color: #00FF66; /* Verde */
    }

    /* Valores de resistencia */
    .item-tooltip .resist-value {
        color: #00FFFF; /* Turquesa */
    }

    /* Texto especial (rojo) */
    .item-tooltip .special-text {
        color: #FF5555;
        font-weight: bold;
    }

    /* Texto único (dorado) */
    .item-tooltip .unique-text {
        color: #f0e6d2;
        font-weight: bold;
        text-shadow: 0 0 5px rgba(184, 152, 89, 0.7);
    }

/* Animación de aparición */
@keyframes tooltipFade {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Ajustes para rarezas */
.item-tooltip.common b {
    color: #b0b0b0;
}

.item-tooltip.magic b {
    color: #6080f0;
}

.item-tooltip.rare b {
    color: #f0d020;
}

.item-tooltip.unique b {
    color: #f0e6d2;
}

.item-tooltip.cospre b {
    color: #e0b050;
}
.inventory-grid-cospre {
    display: grid;
    grid-template-columns: repeat(10, 45px);
    gap: 10px;
    justify-content: center;
    margin: 15px auto;
    width: fit-content;
}

