/**
 * Jewel Finder - Estilos para el Panel de Categorías (Solo Escritorio)
 */

/* --- Contenedor de Escritorio --- */
.jewel-finder-container .jewel-finder-categories-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.jewel-finder-container .jewel-finder-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* --- Tarjeta de Categoría (Escritorio) --- */
.jewel-finder-container .category-button {
    background-color: #fff !important;
    display: flex;
    flex-direction: column;
    width: 130px;
    height: 150px;
    border: 1px solid var(--card-border-color, #e0e0e0);
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
}

.jewel-finder-container .category-button:hover,
.jewel-finder-container .category-button.active {
    background-color: #fff !important;
    border-color: var(--card-active-border-color, #007bff);
    box-shadow: 0 4px 12px var(--card-active-border-color-shadow, rgba(0, 123, 255, 0.2));
}

.jewel-finder-container .category-button-image {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-sizing: border-box;
    background-color: #f5f5f5;
}

.jewel-finder-container .category-button-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.jewel-finder-container .category-button-title {
    width: 100%;
    padding: 8px 5px;
    font-size: 14px !important;
    line-height: 1.2;
    color: #333;
    font-weight: 500;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e0e0e0;
}

.jewel-finder-container .category-button.has-no-image .category-button-image { display: none; }
.jewel-finder-container .category-button.has-no-image .category-button-title { border-top: none; }
.jewel-finder-container .category-button.has-no-image { justify-content: center; }
.jewel-finder-container .category-button.is-hidden { display: none; }

/* --- Botón Desplegable (Escritorio) --- */
.jewel-finder-container .jewel-finder-categories-wrapper .jewel-finder-toggle-button {
    background-color: #212529 !important;
    border: none;
    border-radius: 8px;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0 auto;
    color: #fff !important;
}

.jewel-finder-container .jewel-finder-categories-wrapper .jewel-finder-toggle-button:hover {
    background-color: #343a40 !important;
}

.jewel-finder-container .jewel-finder-categories-wrapper .jewel-finder-toggle-button svg {
    width: 24px !important;
    height: 24px !important;
    transition: transform 0.3s ease;
}

.jewel-finder-container .jewel-finder-categories-wrapper .jewel-finder-toggle-button.is-open svg {
    transform: rotate(180deg);
}