/*
 * Smart Product Navigator - style.css
 * Estilos base para historial y mensajes rotativos
 */

/* ====== Mensajes rotativos ====== */
.spn-message-banner {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.spn-message-banner.active {
    background-color: #e8f4ff;
    border-color: #b3d8ff;
}

/* ====== Historial ====== */
.spn-history-container {
    margin-top: 20px;
}

.spn-history-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.spn-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.spn-history-item {
    flex: 0 0 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spn-history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.spn-history-item img {
    width: 100%;
    height: auto;
    display: block;
}

.spn-history-item .spn-history-name {
    font-size: 0.9rem;
    padding: 8px;
    text-align: center;
    color: #333;
}

/* ====== Responsive ====== */
@media (max-width: 600px) {
    .spn-history-item {
        flex: 0 0 45%;
    }
}
