/* Botones ilustrados a partir de public/Modelos_del_menu.
   Se mantienen los id y las clases de comportamiento para no alterar los eventos JS. */
.menu-art-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    line-height: 0;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    box-shadow: none;
    transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
    -webkit-tap-highlight-color: transparent;
}

.menu-art-button > img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 158px;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.menu-art-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.07) drop-shadow(0 4px 8px rgba(0, 0, 0, .22));
}

.menu-art-button:active {
    transform: translateY(0) scale(.98);
    filter: brightness(.98);
}

.menu-art-button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
    border-color: rgba(147, 197, 253, .8);
}

.menu-art-button:disabled {
    opacity: .48;
    cursor: not-allowed;
    filter: grayscale(.2);
}

/* Toolbar principal: las ilustraciones conservan proporción y se ajustan a la fila. */
.topbar-actions .menu-art-button > img {
    height: 48px;
    max-width: 158px;
}

/* Cabeceras de Creador de Pins y calificaciones. */
.creator-header-actions .menu-art-button > img,
.rating-view-container .creator-header-actions .menu-art-button > img {
    height: 44px;
    max-width: 142px;
}

/* Evita que el botón ilustrado quede aplastado cuando el encabezado se envuelve. */
.topbar-actions .menu-art-button {
    flex-shrink: 0;
}

@media (max-width: 1250px) {
    .topbar-actions .menu-art-button > img {
        height: 44px;
        max-width: 142px;
    }
}

@media (max-width: 850px) {
    .topbar-actions .menu-art-button > img {
        height: 42px;
        max-width: 138px;
    }
    .creator-header-actions {
        flex-wrap: wrap;
        align-items: center;
    }
    .creator-header-actions .menu-art-button > img {
        height: 42px;
        max-width: 138px;
    }
}

@media (max-width: 560px) {
    .topbar-actions .menu-art-button > img {
        height: 38px;
        max-width: 124px;
    }
    .creator-header-actions .menu-art-button > img {
        height: 38px;
        max-width: 124px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-art-button { transition: none; }
}
