/* Contenedor general del tablero */
.sticky-board-wrapper {
    max-width: 100%;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    box-sizing: border-box;
}

/* Formulario */
.sticky-board-form {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sticky-note-input {
    width: 100%;
    min-height: 70px;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #ffffff;
}

.sticky-note-submit {
    align-self: flex-end;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 20px;
    border: none;
    background: #0073aa;
    color: #ffffff;
}

/* Contenedor de notas */
.sticky-board-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    max-height: 420px;
    overflow: auto;
    padding: 4px;
    box-sizing: border-box;
    touch-action: pan-x pan-y;
}

/* Nota */
.sticky-note {
    position: relative;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.10);
    cursor: move;
    word-wrap: break-word;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sticky-note-content {
    font-size: 14px;
    line-height: 1.4;
}

/* Footer: corazones */
.sticky-note-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 4px;
}

.heart-note {
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e0245e;
    transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    opacity: 0.9;
}

.heart-note.liked {
    transform: scale(1.25);
    color: #ff3366;
    opacity: 1;
}

.heart-count {
    font-size: 13px;
}

/* Botón eliminar (admin) */
.sticky-note .delete-note {
    position: absolute;
    top: 4px;
    right: 4px;
    border: none;
    border-radius: 50%;
    padding: 0 6px;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    background: #d63638;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 600px) {
    .sticky-board-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
