/* static/css/detail_page.css */

.detail-container {
    display: flex;
    flex-wrap: wrap; /* Para que las columnas se apilen en pantallas pequeñas */
    gap: 2rem; /* Espacio entre columnas */
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-left-column {
    flex: 1; /* Ocupa espacio flexible */
    min-width: 200px; /* Ancho mínimo para la imagen */
}

.detail-item-image {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eee;
    margin-bottom: 1rem;
}
.detail-item-image-placeholder {
    width: 100%;
    min-height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border: 1px solid #eee;
     margin-bottom: 1rem;
}


.detail-right-column {
    flex: 2; /* Ocupa el doble de espacio que la izquierda */
    min-width: 300px;
}

/* --- Estilos de Pestañas --- */
.tab-container {
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

.tab-headers {
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    background-color: #e0e0e0; /* Fondo ligeramente gris para las cabeceras */
}

.tab-headers button.tab-link {
    background-color: inherit; /* Hereda el gris */
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    transition: 0.3s;
    font-size: 1rem;
    border-right: 1px solid #ccc; /* Separador */
}
.tab-headers button.tab-link:last-child {
    border-right: none;
}


.tab-headers button.tab-link:hover {
    background-color: #ddd; /* Más oscuro al pasar el ratón */
}

.tab-headers button.tab-link.active {
    background-color: #f9f9f9; /* Mismo color que el fondo del contenido */
    border-bottom: 1px solid #f9f9f9; /* Simula conexión con el contenido */
    margin-bottom: -1px; /* Sube el botón ligeramente */
    font-weight: bold;
}

.tab-content {
    display: none; /* Oculto por defecto (JS lo mostrará) */
    padding: 15px 12px;
    border-top: none;
}

.tab-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.stat-list li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #eee;
}
.stat-list li:last-child {
    border-bottom: none;
}


/* Para el enlace de la lista */
a.equipment-item-link {
    text-decoration: none;
    color: inherit; /* Hereda el color normal del texto */
    display: block; /* Hace que toda el área del <li> sea clickeable */
}
a.equipment-item-link:hover .equipment-item { /* Ejemplo de efecto hover */
    background-color: #f8f9fa; /* Un ligero cambio de fondo */
}

/* --- ESTILOS DE TINTES (SOLO CONTENEDOR) --- */
.dye-info-container {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.dye-info-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.dye-boxes-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Espacio entre las cajas de tinte */
}

/* --- NUEVOS ESTILOS PARA LISTAS DE INFO (OBTAINED/DROPS) --- */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}
.info-list-item:last-child {
    border-bottom: none;
}
.info-list-item:hover {
    background-color: #f8f9fa;
}

.info-list-item-link {
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.info-list-item__image {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
    border-radius: 4px;
}
.info-list-item__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.info-list-item__image .image-placeholder {
    font-size: 1.5rem;
    color: #adb5bd;
    font-weight: bold;
}

.info-list-item__details {
    display: flex;
    flex-direction: column;
}
.details__name {
    font-weight: 600;
    color: #343a40;
}
.details__context {
    font-size: 0.85rem;
    color: #6c757d;
}

.info-list-item__meta {
    margin-left: auto;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    flex-shrink: 0;
    padding-left: 1rem;
}

.badge-monster {
    display: inline-block;
    padding: 0.2em 0.5em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}
.badge-boss {
    color: #fff;
    background-color: #dc3545; /* Rojo */
}
.badge-miniboss {
    color: #000;
    background-color: #ffc107; /* Amarillo */
}

/* --- NUEVO BADGE DE EVENTO --- */
.badge-event {
    color: #fff;
    background-color: #fd7e14; /* Naranja */
}

/* --- NUEVOS ESTILOS PARA TIPOS DE EQUIPO EN LISTAS --- */
.details__type {
    font-size: 0.85em;
    font-weight: 500;
    margin-left: 0.5rem;
}

.type-default { color: #212529; } /* Negro */
.type-additional { color: #E67E22; } /* Naranja/Amarillo oscuro */
.type-armor { color: #27AE60; } /* Verde */
.type-special { color: #8E44AD; } /* Morado */